mirror of
https://github.com/outline/outline.git
synced 2026-11-26 07:33:19 +03:00
Added error handling
This commit is contained in:
1 parent
ca875915ce
commit
7b589ff46a
3 files changed
+5
-2
No files matched your search
@@ -58,6 +58,7 @@
|
||||
"SLACK_REDIRECT_URI": true,
|
||||
"DEPLOYMENT": true,
|
||||
"BASE_URL": true,
|
||||
"afterAll": true
|
||||
"afterAll": true,
|
||||
"Bugsnag": true
|
||||
}
|
||||
}
|
||||
Vendored
+1
@@ -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
Block a user