refactor(core): Stop reporting to Sentry missing-node-on-retry error (no-changelog) (#7648)

https://n8nio.sentry.io/issues/4612370603
This commit is contained in:
Iván Ovejero 2023-11-08 10:09:33 +01:00 committed by GitHub
parent 3d5a485bcf
commit 3a776e0132
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.`,
);
}