refactor(core): Migrate all errors in cli package to new hierarchy (#13478)

Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
This commit is contained in:
Iván Ovejero
2025-02-27 08:30:55 +01:00
committed by GitHub
parent 719e3c2cf7
commit 3ca99194c6
107 changed files with 340 additions and 354 deletions

View File

@@ -30,7 +30,7 @@ import {
Workflow,
WorkflowActivationError,
WebhookPathTakenError,
ApplicationError,
UnexpectedError,
} from 'n8n-workflow';
import { ActivationErrorsService } from '@/activation-errors.service';
@@ -238,7 +238,7 @@ export class ActiveWorkflowManager {
});
if (workflowData === null) {
throw new ApplicationError('Could not find workflow', { extra: { workflowId } });
throw new UnexpectedError('Could not find workflow', { extra: { workflowId } });
}
const workflow = new Workflow({