fix(core): Avoid wrapping ExecutionBaseError to prevent misreporting to Sentry (no-changelog) (#8262)

This commit is contained in:
Iván Ovejero 2024-01-09 10:11:28 +01:00 committed by GitHub
parent 3b996a7da0
commit 055cc785fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1805,6 +1805,8 @@ export async function requestWithAuthentication(
}
throw error;
} catch (error) {
if (error instanceof ExecutionBaseError) throw error;
throw new NodeApiError(this.getNode(), error);
}
}