Skip to content

Commit

Permalink
revert changes in sentry errors to try other changes first
Browse files Browse the repository at this point in the history
  • Loading branch information
kabeaty committed Oct 9, 2024
1 parent b9d5524 commit d492591
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions server/src/core/server/services/errors/sentry/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,7 @@ export class SentryErrorReporter extends ErrorReporter {
}

// Get the original cause of the error in case that it is wrapped.
let errorToReport = getErrorToReport(err as Error);

if (!(errorToReport instanceof Error)) {
errorToReport = new Error(
"Non-error thrown: " + JSON.stringify(errorToReport)
);
}
const errorToReport = getErrorToReport(err as Error);

// Capture and report the error to Sentry.
const id = Sentry.captureException(errorToReport, context);
Expand Down

0 comments on commit d492591

Please sign in to comment.