diff --git a/tools/pyboard.py b/tools/pyboard.py index d96ccc328a..5eac030bdd 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -319,7 +319,7 @@ class Pyboard: # check if we could exec command data = self.serial.read(2) if data != b'OK': - raise PyboardError('could not exec command') + raise PyboardError('could not exec command (response: %s)' % data) def exec_raw(self, command, timeout=10, data_consumer=None): self.exec_raw_no_follow(command);