summaryrefslogtreecommitdiffstatshomepage
path: root/tools/pyboard.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-04-07 01:04:47 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-04-07 01:04:47 +0300
commit3e1310d6e23777d7322016d7390a00da3284afbb (patch)
treef59ca7389f3979dddef5a6daaaf5e86e32b3a745 /tools/pyboard.py
parent1da840464759f73efbc42238a91733f436991eaf (diff)
downloadmicropython-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-xtools/pyboard.py2
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);