diff --git a/_packs/entry.js b/_packs/entry.js index aac43aa..5de0945 100644 --- a/_packs/entry.js +++ b/_packs/entry.js @@ -6,6 +6,12 @@ window.airbrake = new Notifier({ host: 'https://panel.sutty.nl' }) +console.originalError = console.error +console.error = (...e) => { + window.airbrake.notify(e.join(' ')) + return console.originalError(...e) +} + import 'core-js/stable' import 'regenerator-runtime/runtime'