From 055cc785fdb9980dd23dd48c09b8541e4474ac61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 9 Jan 2024 10:11:28 +0100 Subject: [PATCH] fix(core): Avoid wrapping `ExecutionBaseError` to prevent misreporting to Sentry (no-changelog) (#8262) --- packages/core/src/NodeExecuteFunctions.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/NodeExecuteFunctions.ts b/packages/core/src/NodeExecuteFunctions.ts index 03b84f599e..1f68e2b1d4 100644 --- a/packages/core/src/NodeExecuteFunctions.ts +++ b/packages/core/src/NodeExecuteFunctions.ts @@ -1805,6 +1805,8 @@ export async function requestWithAuthentication( } throw error; } catch (error) { + if (error instanceof ExecutionBaseError) throw error; + throw new NodeApiError(this.getNode(), error); } }