mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix: Add original error message to messages, do not obfuscate if description provided in options (no-changelog) (#10202)
This commit is contained in:
@@ -34,7 +34,11 @@ export class NodeOperationError extends NodeError {
|
||||
error.messages.forEach((message) => this.addToMessages(message));
|
||||
}
|
||||
|
||||
if (obfuscateErrorMessage) this.message = OBFUSCATED_ERROR_MESSAGE;
|
||||
if (obfuscateErrorMessage && !options.description) {
|
||||
const originalMessage = typeof error === 'string' ? error : (error.message as string);
|
||||
this.addToMessages(originalMessage);
|
||||
this.message = OBFUSCATED_ERROR_MESSAGE;
|
||||
}
|
||||
if (options.message) this.message = options.message;
|
||||
if (options.level) this.level = options.level;
|
||||
if (options.functionality) this.functionality = options.functionality;
|
||||
|
||||
Reference in New Issue
Block a user