Skip to content

Commit

Permalink
Show more details on sandbox error
Browse files Browse the repository at this point in the history
  • Loading branch information
devcurmudgeon committed May 9, 2016
1 parent bb09db1 commit 32325cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ybd/sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,16 @@ def run_sandboxed(this, command, env=None, allow_parallel=False):
app.log_env(this['log'], env, argv_to_string(argv))

with open(this['log'], "a") as logfile:
exit_code = 99
try:
exit_code = executor.run_sandbox_with_redirection(
argv, stdout=logfile, stderr=sandboxlib.STDOUT,
env=env, **config)
except:
import traceback
traceback.print_exc()
app.exit('SANDBOX',
'ERROR: failed on run_sandbox_with_redirection', '')
app.log('SANDBOX','ERROR: in run_sandbox_with_redirection',
exit_code)

if exit_code != 0:
app.log(this, 'ERROR: command failed in directory %s:\n\n' %
Expand Down

0 comments on commit 32325cf

Please sign in to comment.