Skip to content
Snippets Groups Projects
Commit ea6692a8 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tools/pyboard: Use repr() when quoting data in error messages.

As it may contain newlines, etc.
parent 98dd126e
No related branches found
No related tags found
No related merge requests found
...@@ -343,7 +343,7 @@ class Pyboard: ...@@ -343,7 +343,7 @@ class Pyboard:
# check if we could exec command # check if we could exec command
data = self.serial.read(2) data = self.serial.read(2)
if data != b'OK': 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): def exec_raw(self, command, timeout=10, data_consumer=None):
self.exec_raw_no_follow(command); self.exec_raw_no_follow(command);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment