Skip to content

Commit

Permalink
[OCTRL-734][core] Add the plugin error reasons in the GUI messages
Browse files Browse the repository at this point in the history
  • Loading branch information
knopers8 committed Feb 28, 2023
1 parent 97e4abe commit 22cdba1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/workflow/callable/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ func (c *Call) Call() error {

// if __call_error was written into the VarStack we treat it as an error exit from the call
if errMsg, ok := c.VarStack["__call_error"]; ok && len(errMsg) > 0 {
if errReason, ok := c.VarStack["__call_error_reason"]; ok && len(errReason) > 0 {
errMsg += ". REASON: " + errReason
}
return errors.New(errMsg)
}

Expand Down

0 comments on commit 22cdba1

Please sign in to comment.