Skip to content

Commit f3bcac9

Browse files
author
bc Wong
committed
Show command output in error message
1 parent 406e897 commit f3bcac9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gitreview/proc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def run_oneline_cmd(args, cwd=None, env=None):
198198
num_lines = len(lines)
199199
if num_lines < 2:
200200
# XXX: It would be nice to include cmd_out in the exception
201-
msg = 'did not print a terminating newline'
201+
msg = 'did not print a terminating newline: "%s"' % (cmd_out,)
202202
raise CmdFailedError(args, msg)
203203
elif num_lines > 2 or lines[1]:
204204
# XXX: It would be nice to include cmd_out in the exception

0 commit comments

Comments
 (0)