From 3a776e01326cfbd260a6029e28cd807611fa8683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 8 Nov 2023 10:09:33 +0100 Subject: [PATCH] refactor(core): Stop reporting to Sentry missing-node-on-retry error (no-changelog) (#7648) https://n8nio.sentry.io/issues/4612370603 --- packages/cli/src/executions/executions.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/executions/executions.service.ts b/packages/cli/src/executions/executions.service.ts index 2ab3bdda32..29915d6939 100644 --- a/packages/cli/src/executions/executions.service.ts +++ b/packages/cli/src/executions/executions.service.ts @@ -1,6 +1,6 @@ import { validate as jsonSchemaValidate } from 'jsonschema'; import type { IWorkflowBase, JsonObject, ExecutionStatus } from 'n8n-workflow'; -import { jsonParse, Workflow } from 'n8n-workflow'; +import { jsonParse, Workflow, WorkflowOperationError } from 'n8n-workflow'; import type { FindOperator } from 'typeorm'; import { In } from 'typeorm'; import { ActiveExecutions } from '@/ActiveExecutions'; @@ -311,7 +311,7 @@ export class ExecutionsService { nodeName: stack.node.name, }, ); - throw new Error( + throw new WorkflowOperationError( `Could not find the node "${stack.node.name}" in workflow. It probably got deleted or renamed. Without it the workflow can sadly not be retried.`, ); }