chore(core): Stop reporting to Sentry execution cancellations (#11347)

This commit is contained in:
Iván Ovejero 2024-10-22 17:27:07 +02:00 committed by GitHub
parent 43f31b86aa
commit fb3518fcb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;