diff --git a/.eslintrc b/.eslintrc index 4750ebfa..be1271eb 100644 --- a/.eslintrc +++ b/.eslintrc @@ -58,6 +58,7 @@ "SLACK_REDIRECT_URI": true, "DEPLOYMENT": true, "BASE_URL": true, - "afterAll": true + "afterAll": true, + "Bugsnag": true } } \ No newline at end of file diff --git a/flow-typed/globals.js b/flow-typed/globals.js index 7d9d099d..c0951f95 100644 --- a/flow-typed/globals.js +++ b/flow-typed/globals.js @@ -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; diff --git a/frontend/stores/CollectionsStore.js b/frontend/stores/CollectionsStore.js index a0c09491..98f4e2da 100644 --- a/frontend/stores/CollectionsStore.js +++ b/frontend/stores/CollectionsStore.js @@ -63,7 +63,8 @@ class CollectionsStore { this.add(collection); }); } catch (e) { - // No-op + Bugsnag.notify(e); + this.errors.add('Something went wrong'); } }