Added error handling

This commit is contained in:
Jori Lallo
2017-07-18 23:36:49 -07:00
parent ca875915ce
commit 7b589ff46a
3 changed files with 5 additions and 2 deletions

View File

@@ -58,6 +58,7 @@
"SLACK_REDIRECT_URI": true, "SLACK_REDIRECT_URI": true,
"DEPLOYMENT": true, "DEPLOYMENT": true,
"BASE_URL": true, "BASE_URL": true,
"afterAll": true "afterAll": true,
"Bugsnag": true
} }
} }

View File

@@ -4,3 +4,4 @@ declare var SLACK_REDIRECT_URI: string;
declare var SLACK_KEY: string; declare var SLACK_KEY: string;
declare var BASE_URL: string; declare var BASE_URL: string;
declare var DEPLOYMENT: string; declare var DEPLOYMENT: string;
declare var Bugsnag: any;

View File

@@ -63,7 +63,8 @@ class CollectionsStore {
this.add(collection); this.add(collection);
}); });
} catch (e) { } catch (e) {
// No-op Bugsnag.notify(e);
this.errors.add('Something went wrong');
} }
} }