summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2016-05-09 08:49:01 +0100
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2016-05-09 08:50:51 +0100
commit32325cf9cb2c930434368b05d1ef1941b3719436 (patch)
treebc0de9f97b9d8596c5b5b10b4ac35488b10b5a1a
parentbb09db1b493b4afcae54bfdd65c8bba6639111d5 (diff)
downloadybd-16.20.tar.gz
Show more details on sandbox error16.20
-rw-r--r--ybd/sandbox.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ybd/sandbox.py b/ybd/sandbox.py
index 860814d..687ca47 100644
--- a/ybd/sandbox.py
+++ b/ybd/sandbox.py
@@ -166,6 +166,7 @@ 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,
@@ -173,8 +174,8 @@ def run_sandboxed(this, command, env=None, allow_parallel=False):
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' %