mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 04:47:29 -08:00
fix(core): On unhandled rejections, extract the original exception correctly (#11389)
This commit is contained in:
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) return null;
|
||||||
|
|
||||||
|
if (originalException instanceof Promise) {
|
||||||
|
originalException = await originalException.catch((error) => error as Error);
|
||||||
|
}
|
||||||
|
|
||||||
if (originalException instanceof AxiosError) return null;
|
if (originalException instanceof AxiosError) return null;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in a new issue