summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-10-05 23:40:19 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-10-05 23:40:19 +0300
commitea6692a83e7132aa18a8032ae3c76fa91d9d50f2 (patch)
tree45c8ec74b59ce4d35a48c9571db2acf52dac005c /tools
parent98dd126e9818309e4ec9b561e7b6b9f7fa039cb9 (diff)
tools/pyboard: Use repr() when quoting data in error messages.
As it may contain newlines, etc.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/pyboard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pyboard.py b/tools/pyboard.py
index d15f520ac..887473071 100755
--- a/tools/pyboard.py
+++ b/tools/pyboard.py
@@ -343,7 +343,7 @@ class Pyboard:
# check if we could exec command
data = self.serial.read(2)
if data != b'OK':
- raise PyboardError('could not exec command (response: %s)' % data)
+ raise PyboardError('could not exec command (response: %r)' % data)
def exec_raw(self, command, timeout=10, data_consumer=None):
self.exec_raw_no_follow(command);