Improving tracelog output on error

This commit is contained in:
Anton Hvornum 2019-11-13 23:26:49 +00:00
parent 6b5f93f08e
commit 9774daa2b6
1 changed files with 1 additions and 1 deletions

View File

@ -259,8 +259,8 @@ class sys_command():
exit_code = os.waitpid(self.pid, 0)[1]
if exit_code != 0:
print(trace_log.decode('UTF-8'))
print('[E] Command "{}" on line ~150 exited with status code:'.format(self.cmd[0]), exit_code)
print(trace_log)
print('[?] Command executed: {}'.format(self.cmd))
exit(1)