Skip to content

Commit 3e1310d

Browse files
committed
tools/pyboard: Provide more details when expected reply not received.
When trying to execute a command via raw REPL and expected "OK" reply not received, show what was received instead.
1 parent 1da8404 commit 3e1310d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/pyboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def exec_raw_no_follow(self, command):
319319
# check if we could exec command
320320
data = self.serial.read(2)
321321
if data != b'OK':
322-
raise PyboardError('could not exec command')
322+
raise PyboardError('could not exec command (response: %s)' % data)
323323

324324
def exec_raw(self, command, timeout=10, data_consumer=None):
325325
self.exec_raw_no_follow(command);

0 commit comments

Comments
 (0)