From b670de9c7309b230f4b33e2f5a61775098cd46a2 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Mon, 30 Mar 2026 16:25:16 +0200 Subject: [PATCH] Add sentry error capture --- web/pages/profile.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/pages/profile.tsx b/web/pages/profile.tsx index fec7b800..7e6af793 100644 --- a/web/pages/profile.tsx +++ b/web/pages/profile.tsx @@ -1,3 +1,4 @@ +import * as Sentry from '@sentry/node' import {APIError} from 'common/api/utils' import {debug} from 'common/logger' import {Profile, ProfileWithoutUser} from 'common/profiles/profile' @@ -91,6 +92,9 @@ function ProfilePageInner(props: {user: User; profile: Profile}) { if (error instanceof APIError) { message = `Error: ` + JSON.stringify(error.toJSON().error.details) } + Sentry.captureException(error, { + extra: {baseUser, parsedProfile, interests, causes, work}, + }) toast.error(message) return }