Soportar varios parámetros y devolver el mensaje original
This commit is contained in:
parent
79624e10f4
commit
8d2378ff89
1 changed files with 5 additions and 1 deletions
|
@ -6,7 +6,11 @@ window.airbrake = new Notifier({
|
|||
host: 'https://panel.sutty.nl'
|
||||
})
|
||||
|
||||
console.error = (e) => window.airbrake.notify(e)
|
||||
console.originalError = console.error
|
||||
console.error = (...e) => {
|
||||
window.airbrake.notify(e.join(' '))
|
||||
return console.originalError(...e)
|
||||
}
|
||||
|
||||
import 'core-js/stable'
|
||||
import 'regenerator-runtime/runtime'
|
||||
|
|
Loading…
Reference in a new issue