From a9589f09e50a40ccd7246b78e0ef3f087233a0a4 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Tue, 11 Jul 2023 22:05:00 +0300 Subject: [PATCH] sentry: use captureException for GlitchTip --- apps/web/utils/axios.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/utils/axios.ts b/apps/web/utils/axios.ts index d10e9cb..e1abf33 100644 --- a/apps/web/utils/axios.ts +++ b/apps/web/utils/axios.ts @@ -1,4 +1,4 @@ -import { captureMessage, withScope } from '@sentry/nextjs'; +import { captureException, withScope } from '@sentry/nextjs'; import type { AxiosError } from 'axios'; import { isAxiosError } from 'axios'; import { pick } from 'radash'; @@ -30,7 +30,7 @@ export async function withHandleError(fn: Promise) { if (key === 'data') extra = JSON.stringify(extra); scope.setExtra(key, extra); }); - captureMessage(`${error_.message} | ${message}`); + captureException(`${error_.message} | ${message}`); }); throw new Error(message);