Added error handling
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
1
flow-typed/globals.js
vendored
1
flow-typed/globals.js
vendored
@@ -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;
|
||||||
|
|||||||
@@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user