mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Improve handling of wrapped errors (no-changelog) (#8631)
This commit is contained in:
committed by
GitHub
parent
100d9bc087
commit
2b9391a975
@@ -13,10 +13,10 @@ describe('NodeError', () => {
|
||||
const wrapped2 = new NodeOperationError(node, opsError);
|
||||
|
||||
expect(wrapped1.level).toEqual('error');
|
||||
expect(wrapped1.message).toEqual(
|
||||
'[RE-WRAPPED]: The service was not able to process your request',
|
||||
);
|
||||
expect(wrapped1.message).toEqual('The service was not able to process your request');
|
||||
expect(wrapped1.tags).toEqual(expect.objectContaining({ reWrapped: true }));
|
||||
expect(wrapped2.level).toEqual('error');
|
||||
expect(wrapped2.message).toEqual('[RE-WRAPPED]: Some operation failed');
|
||||
expect(wrapped2.message).toEqual('Some operation failed');
|
||||
expect(wrapped2.tags).toEqual(expect.objectContaining({ reWrapped: true }));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user