Move exception in two lines that traceback looks better

pull/8181/head
Olli-Pekka Puolitaival 2018-09-19 14:11:40 +03:00
parent 55336b034d
commit b8b11f0c8b
1 changed files with 3 additions and 3 deletions

View File

@ -172,9 +172,9 @@ def icetea_tests(target, tcdir, verbose):
stdout, stderr, returncode = run_cmd(command) stdout, stderr, returncode = run_cmd(command)
if returncode != 0: if returncode != 0:
raise Exception( additional_information = "\ncwd:{} \nCommand:'{}' \noutput:{}".format(os.getcwd(), ' '.join(command),
"Error when running icetea. \ncwd:{} \nCommand:'{}' \noutput:{}".format(os.getcwd(), ' '.join(command), stderr.decode())
stderr.decode())) raise Exception("Error when running icetea. {}".format(additional_information))
return json.loads(stdout) return json.loads(stdout)