mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
feat: Do not show errors not processed by n8n (no-changelog) (#9598)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -121,6 +121,7 @@ import {
|
||||
jsonParse,
|
||||
ApplicationError,
|
||||
sleep,
|
||||
OBFUSCATED_ERROR_MESSAGE,
|
||||
} from 'n8n-workflow';
|
||||
import type { Token } from 'oauth-1.0a';
|
||||
import clientOAuth1 from 'oauth-1.0a';
|
||||
@@ -3583,7 +3584,13 @@ export function getExecuteFunctions(
|
||||
itemIndex,
|
||||
),
|
||||
getExecuteData: () => executeData,
|
||||
continueOnFail: () => continueOnFail(node),
|
||||
continueOnFail: (error?: Error) => {
|
||||
const shouldContinue = continueOnFail(node);
|
||||
if (error && shouldContinue && !(error instanceof ApplicationError)) {
|
||||
error.message = OBFUSCATED_ERROR_MESSAGE;
|
||||
}
|
||||
return shouldContinue;
|
||||
},
|
||||
evaluateExpression: (expression: string, itemIndex: number) => {
|
||||
return workflow.expression.resolveSimpleParameterValue(
|
||||
`=${expression}`,
|
||||
|
||||
@@ -44,6 +44,7 @@ import {
|
||||
ApplicationError,
|
||||
NodeExecutionOutput,
|
||||
sleep,
|
||||
OBFUSCATED_ERROR_MESSAGE,
|
||||
} from 'n8n-workflow';
|
||||
import get from 'lodash/get';
|
||||
import * as NodeExecuteFunctions from './NodeExecuteFunctions';
|
||||
@@ -1304,13 +1305,12 @@ export class WorkflowExecute {
|
||||
} catch (error) {
|
||||
this.runExecutionData.resultData.lastNodeExecuted = executionData.node.name;
|
||||
|
||||
const message =
|
||||
error instanceof ApplicationError ? error.message : OBFUSCATED_ERROR_MESSAGE;
|
||||
|
||||
const e = error as unknown as ExecutionBaseError;
|
||||
|
||||
executionError = {
|
||||
...e,
|
||||
message: e.message,
|
||||
stack: e.stack,
|
||||
};
|
||||
executionError = { ...e, message, stack: e.stack };
|
||||
|
||||
Logger.debug(`Running node "${executionNode.name}" finished with error`, {
|
||||
node: executionNode.name,
|
||||
|
||||
Reference in New Issue
Block a user