diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-04-07 01:04:47 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-04-07 01:04:47 +0300 |
commit | 3e1310d6e23777d7322016d7390a00da3284afbb (patch) | |
tree | f59ca7389f3979dddef5a6daaaf5e86e32b3a745 /tools/pyboard.py | |
parent | 1da840464759f73efbc42238a91733f436991eaf (diff) | |
download | micropython-3e1310d6e23777d7322016d7390a00da3284afbb.tar.gz micropython-3e1310d6e23777d7322016d7390a00da3284afbb.zip |
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.
Diffstat (limited to 'tools/pyboard.py')
-rwxr-xr-x | tools/pyboard.py | 2 |
1 files changed, 1 insertions, 1 deletions
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); |