mirror of
https://github.com/n8n-io/n8n.git
synced 2024-09-19 22:37:31 -07:00
Revert "report ExecutionNotFoundError only to sentry and the logs, not to the user"
This reverts commit 9b0b0fbf57
.
This commit is contained in:
parent
f19fcb2c0b
commit
e9fd2be0b3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue