# HG changeset patch # User ross lazarus ross.lazarus@gmail.com # Date 1338384052 -36000 # Node ID 0133b97e477e032cf7cb3c8a6ea458eddf572a38 # Parent fda8032fe9894590430c4986550a078c1ded1da9 Write to stderr to force job runner to realise that the tool failed - it ignores return codes :( diff -r fda8032fe989 -r 0133b97e477e rgDynamicScriptWrapper.py --- a/rgDynamicScriptWrapper.py Wed May 30 22:36:34 2012 +1000 +++ b/rgDynamicScriptWrapper.py Wed May 30 23:20:52 2012 +1000 @@ -244,6 +244,7 @@ r = ScriptRunner(opts) retcode = r.run() if retcode: + print >> sys.stderr,'Executing your script %s failed - return code was %d' % (opts.tool_name,retcode) sys.exit(retcode) # indicate failure to job runner