Skip to content

Commit b8b11f0

Browse files
author
Olli-Pekka Puolitaival
committed
Move exception in two lines that traceback looks better
1 parent 55336b0 commit b8b11f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/run_icetea.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ def icetea_tests(target, tcdir, verbose):
172172
stdout, stderr, returncode = run_cmd(command)
173173

174174
if returncode != 0:
175-
raise Exception(
176-
"Error when running icetea. \ncwd:{} \nCommand:'{}' \noutput:{}".format(os.getcwd(), ' '.join(command),
177-
stderr.decode()))
175+
additional_information = "\ncwd:{} \nCommand:'{}' \noutput:{}".format(os.getcwd(), ' '.join(command),
176+
stderr.decode())
177+
raise Exception("Error when running icetea. {}".format(additional_information))
178178

179179
return json.loads(stdout)
180180

0 commit comments

Comments
 (0)