mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
fix(core): Errors are returned on the success branch if error item has other keys in addition to 'error' (#8380)
This commit is contained in:
parent
ade7d30053
commit
25f51f4fd7
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue