mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
fix(core): Improve handling of wrapped errors (no-changelog) (#8631)
This commit is contained in:
committed by
GitHub
parent
100d9bc087
commit
2b9391a975
@@ -45,8 +45,7 @@ export abstract class NodeError extends ExecutionBaseError {
|
||||
super(message, options);
|
||||
|
||||
if (error instanceof NodeError) {
|
||||
this.level = 'error';
|
||||
this.message = `[RE-WRAPPED]: ${message}`;
|
||||
this.tags.reWrapped = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ export type ReportingOptions = {
|
||||
export class ApplicationError extends Error {
|
||||
level: Level;
|
||||
|
||||
readonly tags?: Event['tags'];
|
||||
readonly tags: NonNullable<Event['tags']>;
|
||||
|
||||
readonly extra?: Event['extra'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user