From 67c722e3c3ddbced4404e6b72fb7eb71f1e07095 Mon Sep 17 00:00:00 2001 From: Andy Espagnolo Date: Tue, 8 Aug 2023 08:52:08 -0300 Subject: [PATCH] chore: avoid reporting profile error (#1167) --- src/back/routes/user.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/back/routes/user.ts b/src/back/routes/user.ts index d21b6e8db..9d4a92fe4 100644 --- a/src/back/routes/user.ts +++ b/src/back/routes/user.ts @@ -110,8 +110,6 @@ async function getProfile(req: Request) { forum_username: forum_id ? (await DiscourseService.getUserById(forum_id))?.username : null, } } catch (error) { - const message = 'Error while fetching profile data' - ErrorService.report(message, { address, error }) - throw new Error(`${message}. ${error}`) + throw new Error(`Error while fetching profile data. ${error}`) } }