Skip to content

Commit 22cdba1

Browse files
committed
[OCTRL-734][core] Add the plugin error reasons in the GUI messages
1 parent 97e4abe commit 22cdba1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/workflow/callable/call.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ func (c *Call) Call() error {
140140

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

0 commit comments

Comments
 (0)