Skip to content

Commit ea6692a

Browse files
committed
tools/pyboard: Use repr() when quoting data in error messages.
As it may contain newlines, etc.
1 parent 98dd126 commit ea6692a

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
@@ -343,7 +343,7 @@ def exec_raw_no_follow(self, command):
343343
# check if we could exec command
344344
data = self.serial.read(2)
345345
if data != b'OK':
346-
raise PyboardError('could not exec command (response: %s)' % data)
346+
raise PyboardError('could not exec command (response: %r)' % data)
347347

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

0 commit comments

Comments
 (0)