mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 00:02:11 +00:00
Merge pull request #1169 from sharelatex/pr-ignore-unhandled-rejection-error
Ignore unhandled rejection error globally GitOrigin-RevId: 29574973e78f44caeb965b70b3dc43681275e05d
This commit is contained in:
parent
c20a506f0e
commit
80dde39e56
1 changed files with 7 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
const app = angular.module('ErrorCatcher', [])
|
||||
const UNHANDLED_REJECTION_ERR_MSG = 'Possibly unhandled rejection: canceled'
|
||||
|
||||
app.config([
|
||||
'$provide',
|
||||
|
@ -20,6 +21,12 @@ app.config([
|
|||
'$delegate',
|
||||
($log, $delegate) =>
|
||||
function(exception, cause) {
|
||||
if (
|
||||
exception === UNHANDLED_REJECTION_ERR_MSG &&
|
||||
cause === undefined
|
||||
) {
|
||||
return
|
||||
}
|
||||
if (
|
||||
(typeof Raven !== 'undefined' && Raven !== null
|
||||
? Raven.captureException
|
||||
|
|
Loading…
Reference in a new issue