Revert "report ExecutionNotFoundError only to sentry and the logs, not to the user"

This reverts commit 9b0b0fbf57.
This commit is contained in:
Danny Martini 2024-09-19 17:36:07 +02:00
parent f19fcb2c0b
commit e9fd2be0b3
No known key found for this signature in database

View file

@ -5,12 +5,7 @@ import type {
ExecutionStatus,
IWorkflowExecutionDataProcess,
} from 'n8n-workflow';
import {
createDeferredPromise,
ErrorReporterProxy,
ExecutionCancelledError,
sleep,
} from 'n8n-workflow';
import { createDeferredPromise, ExecutionCancelledError, sleep } from 'n8n-workflow';
import { strict as assert } from 'node:assert';
import type PCancelable from 'p-cancelable';
import { Service } from 'typedi';
@ -227,7 +222,7 @@ export class ActiveExecutions {
private getExecution(executionId: string): IExecutingWorkflowData {
const execution = this.activeExecutions[executionId];
if (!execution) {
ErrorReporterProxy.error(new ExecutionNotFoundError(executionId));
throw new ExecutionNotFoundError(executionId);
}
return execution;
}