mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08: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,
|
ExecutionStatus,
|
||||||
IWorkflowExecutionDataProcess,
|
IWorkflowExecutionDataProcess,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
import {
|
import { createDeferredPromise, ExecutionCancelledError, sleep } from 'n8n-workflow';
|
||||||
createDeferredPromise,
|
|
||||||
ErrorReporterProxy,
|
|
||||||
ExecutionCancelledError,
|
|
||||||
sleep,
|
|
||||||
} from 'n8n-workflow';
|
|
||||||
import { strict as assert } from 'node:assert';
|
import { strict as assert } from 'node:assert';
|
||||||
import type PCancelable from 'p-cancelable';
|
import type PCancelable from 'p-cancelable';
|
||||||
import { Service } from 'typedi';
|
import { Service } from 'typedi';
|
||||||
|
@ -227,7 +222,7 @@ export class ActiveExecutions {
|
||||||
private getExecution(executionId: string): IExecutingWorkflowData {
|
private getExecution(executionId: string): IExecutingWorkflowData {
|
||||||
const execution = this.activeExecutions[executionId];
|
const execution = this.activeExecutions[executionId];
|
||||||
if (!execution) {
|
if (!execution) {
|
||||||
ErrorReporterProxy.error(new ExecutionNotFoundError(executionId));
|
throw new ExecutionNotFoundError(executionId);
|
||||||
}
|
}
|
||||||
return execution;
|
return execution;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue