diff --git a/apps/web/utils/axios.ts b/apps/web/utils/axios.ts index 2e50bef..9d96998 100644 --- a/apps/web/utils/axios.ts +++ b/apps/web/utils/axios.ts @@ -1,4 +1,4 @@ -import { captureException, captureMessage, withScope } from '@sentry/nextjs'; +import { captureMessage, withScope } from '@sentry/nextjs'; import type { AxiosError } from 'axios'; import { isAxiosError } from 'axios'; import { pick } from 'radash'; @@ -28,8 +28,7 @@ export async function withHandleError(fn: Promise) { (Object.keys(opts) as Array).forEach((key) => { scope.setExtra(key, JSON.stringify(opts[key])); }); - captureMessage(message); - captureException(error_); + captureMessage(`${error_.message} | ${message}`); }); throw new Error(message);