Skip to content

Commit 32325cf

Browse files
committed
Show more details on sandbox error
1 parent bb09db1 commit 32325cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ybd/sandbox.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,16 @@ def run_sandboxed(this, command, env=None, allow_parallel=False):
166166
app.log_env(this['log'], env, argv_to_string(argv))
167167

168168
with open(this['log'], "a") as logfile:
169+
exit_code = 99
169170
try:
170171
exit_code = executor.run_sandbox_with_redirection(
171172
argv, stdout=logfile, stderr=sandboxlib.STDOUT,
172173
env=env, **config)
173174
except:
174175
import traceback
175176
traceback.print_exc()
176-
app.exit('SANDBOX',
177-
'ERROR: failed on run_sandbox_with_redirection', '')
177+
app.log('SANDBOX','ERROR: in run_sandbox_with_redirection',
178+
exit_code)
178179

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

0 commit comments

Comments
 (0)