mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
report ExecutionNotFoundError only to sentry and the logs, not to the user
This commit is contained in:
parent
0706149672
commit
9b0b0fbf57
|
@ -5,7 +5,12 @@ import type {
|
||||||
ExecutionStatus,
|
ExecutionStatus,
|
||||||
IWorkflowExecutionDataProcess,
|
IWorkflowExecutionDataProcess,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
import { createDeferredPromise, ExecutionCancelledError, sleep } from 'n8n-workflow';
|
import {
|
||||||
|
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';
|
||||||
|
@ -222,7 +227,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) {
|
||||||
throw new ExecutionNotFoundError(executionId);
|
ErrorReporterProxy.error(new ExecutionNotFoundError(executionId));
|
||||||
}
|
}
|
||||||
return execution;
|
return execution;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue