Added error handling
This commit is contained in:
parent
ca875915ce
commit
7b589ff46a
|
@ -58,6 +58,7 @@
|
|||
"SLACK_REDIRECT_URI": true,
|
||||
"DEPLOYMENT": true,
|
||||
"BASE_URL": true,
|
||||
"afterAll": true
|
||||
"afterAll": true,
|
||||
"Bugsnag": true
|
||||
}
|
||||
}
|
|
@ -4,3 +4,4 @@ declare var SLACK_REDIRECT_URI: string;
|
|||
declare var SLACK_KEY: string;
|
||||
declare var BASE_URL: string;
|
||||
declare var DEPLOYMENT: string;
|
||||
declare var Bugsnag: any;
|
||||
|
|
|
@ -63,7 +63,8 @@ class CollectionsStore {
|
|||
this.add(collection);
|
||||
});
|
||||
} catch (e) {
|
||||
// No-op
|
||||
Bugsnag.notify(e);
|
||||
this.errors.add('Something went wrong');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue