From 496c9ba35ce6b4354674cb6138fd6a5a96da8736 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 30 Aug 2017 20:28:59 +0100 Subject: [PATCH] Full bugsnag --- src/app/Coriolis.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app/Coriolis.jsx b/src/app/Coriolis.jsx index f6777f7d..1f1765b6 100644 --- a/src/app/Coriolis.jsx +++ b/src/app/Coriolis.jsx @@ -124,6 +124,13 @@ export default class Coriolis extends React.Component { */ _onError(msg, scriptUrl, line, col, errObj) { console && console.error && console.error(arguments); // eslint-disable-line no-console + if (errObj) { + if (errObj instanceof Error) { + Bugsnag.notifyException(errObj) // eslint-disable-line + } else if (errObj instanceof String) { + Bugsnag.notify(msg, errObj) // eslint-disable-line + } + } this.setState({ error: , page: null,