mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix: Always retain original errors in the error chain on NodeOperationError (#4951)
This commit is contained in:
committed by
GitHub
parent
323bd78067
commit
231257d081
@@ -166,7 +166,9 @@ export const parseAndSetBodyJson = (
|
||||
} catch (err) {
|
||||
throw new NodeOperationError(
|
||||
this.getNode(),
|
||||
`The '${parameterName}' property must be valid JSON, but cannot be parsed: ${err}`,
|
||||
new Error(`The '${parameterName}' property must be valid JSON, but cannot be parsed`, {
|
||||
cause: err,
|
||||
}),
|
||||
);
|
||||
}
|
||||
return requestOptions;
|
||||
|
||||
Reference in New Issue
Block a user