Commit 0446d260 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

when an error is coming from the workflow, put the status as error

parent b1d3e27c
......@@ -509,6 +509,7 @@ class Workflow(threading.Thread):
last_stack_location = ""
if len(error["traceback"]) > 0:
last_stack_location = error["traceback"][-1]["location"].strip()
self.status = self.STATUS_FAILED
return { "msg" : error["msg"], "location" : last_stack_location }
else:
return None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment