mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-07-17 02:17:20 +02:00
fix(core): On unhandled rejections, extract the original exception correctly (#11389)
This commit is contained in:
committed by
GitHub
parent
95c5df0781
commit
8608baeb7e
@@ -66,9 +66,13 @@ export const initErrorHandling = async () => {
|
||||
},
|
||||
}),
|
||||
],
|
||||
beforeSend(event, { originalException }) {
|
||||
async beforeSend(event, { originalException }) {
|
||||
if (!originalException) return null;
|
||||
|
||||
if (originalException instanceof Promise) {
|
||||
originalException = await originalException.catch((error) => error as Error);
|
||||
}
|
||||
|
||||
if (originalException instanceof AxiosError) return null;
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user