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 Jan 18, 2024
1 parent ade7d30 commit 25f51f4
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 25f51f4

Please sign in to comment.