diff --git a/packages/cli/src/error-reporting.ts b/packages/cli/src/error-reporting.ts index d90229130f..897bef6fef 100644 --- a/packages/cli/src/error-reporting.ts +++ b/packages/cli/src/error-reporting.ts @@ -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 (