Mercurial > repos > fubar > brokenandnotdeletablebyowneroradmin
changeset 1:0133b97e477e
Write to stderr to force job runner to realise that the tool failed - it ignores return codes :(
author | ross lazarus ross.lazarus@gmail.com |
---|---|
date | Wed, 30 May 2012 23:20:52 +1000 |
parents | fda8032fe989 |
children | d95513e50c92 |
files | rgDynamicScriptWrapper.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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