diff --git a/packages/cli/src/webhooks/webhook-helpers.ts b/packages/cli/src/webhooks/webhook-helpers.ts index 027c965e4e..72628b8351 100644 --- a/packages/cli/src/webhooks/webhook-helpers.ts +++ b/packages/cli/src/webhooks/webhook-helpers.ts @@ -35,6 +35,7 @@ import { createDeferredPromise, ErrorReporterProxy as ErrorReporter, ErrorReporterProxy, + ExecutionCancelledError, FORM_NODE_TYPE, NodeHelpers, NodeOperationError, @@ -756,7 +757,9 @@ export async function executeWebhook( ); } - throw new InternalServerError(e.message); + const internalServerError = new InternalServerError(e.message); + if (e instanceof ExecutionCancelledError) internalServerError.level = 'warning'; + throw internalServerError; }); } return executionId;