Skip to content

Commit

Permalink
fix(browser): Set severity level for events captured by the global er…
Browse files Browse the repository at this point in the history
…ror handler (#4460)

Set severity level in events captured by the global `onerror`, for use in event processing (`beforeSend` or a global event processor).
  • Loading branch information
7inspire committed Jan 28, 2022
1 parent 1792a5b commit 86fa701
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/browser/src/integrations/globalhandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ function _installGlobalOnErrorHandler(): void {
column,
);

event.level = Severity.Error;

addMechanismAndCapture(hub, error, event, 'onerror');
},
);
Expand Down

0 comments on commit 86fa701

Please sign in to comment.