Skip to content

Commit

Permalink
Provide the failing command in RuntimeError() (#424)
Browse files Browse the repository at this point in the history
When raising a RuntimeError(), provide the failing command and its parameters to speed up debugging.
  • Loading branch information
cclauss authored and tqchen committed Jul 16, 2018
1 parent 951835b commit 7ab5c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracker/dmlc_tracker/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def exec_cmd(cmd, role, taskid, pass_env):
if os.name == 'nt':
sys.exit(-1)
else:
raise RuntimeError('Get nonzero return code=%d' % ret)
raise RuntimeError('Get nonzero return code=%d on %s %s' % (ret, cmd, env))


def submit(args):
Expand Down

0 comments on commit 7ab5c1e

Please sign in to comment.