give a better error message with unknown workflow exceptions w/ burnettk
This commit is contained in:
parent
082caa5aea
commit
076afee273
|
@ -158,7 +158,8 @@ class ApiError(Exception):
|
||||||
task_trace=exp.task_trace,
|
task_trace=exp.task_trace,
|
||||||
)
|
)
|
||||||
elif isinstance(exp, WorkflowException) and exp.task_spec:
|
elif isinstance(exp, WorkflowException) and exp.task_spec:
|
||||||
return ApiError.from_task_spec(error_code, message, exp.task_spec)
|
msg = message + ". " + str(exp)
|
||||||
|
return ApiError.from_task_spec(error_code, msg, exp.task_spec)
|
||||||
else:
|
else:
|
||||||
return ApiError("workflow_error", str(exp))
|
return ApiError("workflow_error", str(exp))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue