Skip to content

Commit

Permalink
Updated fix for error handling (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhide-tibco authored May 30, 2024
1 parent 09fd609 commit e82eb38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion instance/taskinst.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,10 @@ func (ti *TaskInst) EvalActivity() (done bool, evalErr error) {
setActivityExecutionMessage(ti, evalErr.Error())

errObj := ti.getErrorObject(evalErr)
_ = ti.flowInst.SetValue("_E", errObj)

if !ti.flowInst.isHandlingError {
_ = ti.flowInst.SetValue("_E", errObj)
}
_ = ti.flowInst.SetValue("_E."+ti.Task().ID(), errObj)

applyAssertionInterceptor(ti, support.AssertionException)
Expand Down

0 comments on commit e82eb38

Please sign in to comment.