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:
Michael Kret 2024-01-18 17:35:59 +02:00 committed by GitHub
parent ade7d30053
commit 25f51f4fd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {