From 8d2378ff89c527d5b1b604ef1f795643f5451a10 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 17 Sep 2021 16:07:10 -0300 Subject: [PATCH] =?UTF-8?q?Soportar=20varios=20par=C3=A1metros=20y=20devol?= =?UTF-8?q?ver=20el=20mensaje=20original?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _packs/entry.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_packs/entry.js b/_packs/entry.js index 0f4b79f..57cf77a 100644 --- a/_packs/entry.js +++ b/_packs/entry.js @@ -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'