misc bits

This commit is contained in:
willyb321
2018-04-19 07:14:13 +10:00
parent 4d2865de13
commit c792323a8a
2 changed files with 3 additions and 3 deletions

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "coriolis_shipyard",
"version": "2.9.1",
"version": "2.9.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -134,9 +134,9 @@ export default class Coriolis extends React.Component {
console && console.error && console.error(arguments); // eslint-disable-line no-console
if (errObj) {
if (errObj instanceof Error) {
Bugsnag.notifyException(errObj) // eslint-disable-line
bugsnagClient.notify(errObj) // eslint-disable-line
} else if (errObj instanceof String) {
Bugsnag.notify(msg, errObj) // eslint-disable-line
bugsnagClient.notify(msg, errObj) // eslint-disable-line
}
}
this.setState({