Added error handling

This commit is contained in:
Jori Lallo committed 2017-07-18 23:36:49 -07:00
1 parent ca875915ce
commit 7b589ff46a
3 files changed
+5 -2

No files matched your search

+2 -1
View File
@@ -58,6 +58,7 @@
"SLACK_REDIRECT_URI": true,
"DEPLOYMENT": true,
"BASE_URL": true,
"afterAll": true
"afterAll": true,
"Bugsnag": true
}
}
+1
View File
@@ -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;
+2 -1
View File
@@ -63,7 +63,8 @@ class CollectionsStore {
this.add(collection);
});
} catch (e) {
// No-op
Bugsnag.notify(e);
this.errors.add('Something went wrong');
}
}