Improving tracelog output on error
This commit is contained in:
parent
6b5f93f08e
commit
9774daa2b6
|
|
@ -259,8 +259,8 @@ class sys_command():
|
||||||
exit_code = os.waitpid(self.pid, 0)[1]
|
exit_code = os.waitpid(self.pid, 0)[1]
|
||||||
|
|
||||||
if exit_code != 0:
|
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('[E] Command "{}" on line ~150 exited with status code:'.format(self.cmd[0]), exit_code)
|
||||||
print(trace_log)
|
|
||||||
print('[?] Command executed: {}'.format(self.cmd))
|
print('[?] Command executed: {}'.format(self.cmd))
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue