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,