Skip to content

Commit

Permalink
chore: avoid reporting profile error (#1167)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp committed Aug 8, 2023
1 parent 0b219c6 commit 67c722e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/back/routes/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
}
}

0 comments on commit 67c722e

Please sign in to comment.