Skip to content

Commit

Permalink
fix(core): Errors are returned on the success branch if error item ha…
Browse files Browse the repository at this point in the history
…s other keys in addition to 'error' (#8380)
  • Loading branch information
michael-radency authored and ivov committed Jan 22, 2024
1 parent e49e49f commit ef5c8ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/src/WorkflowExecute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,12 @@ export class WorkflowExecute {
item.error = undefined;
} else if (item.json.error && Object.keys(item.json).length === 1) {
errorData = item.json.error;
} else if (
item.json.error &&
item.json.message &&
Object.keys(item.json).length === 2
) {
errorData = item.json.error;
}

if (errorData) {
Expand Down

0 comments on commit ef5c8ca

Please sign in to comment.