aboutsummaryrefslogtreecommitdiffstats
path: root/app/Exceptions
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-04-02 14:22:55 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2020-04-02 14:22:55 +0200
commit2ff924e0cc3494489abf0853080f316cc009e18a (patch)
treea6bb51f77c126f6174a595dda0dbfbfd03b006c8 /app/Exceptions
parentAdd new home page (diff)
parentMerge pull request #22 from getferdi/dependabot/npm_and_yarn/acorn-7.1.1 (diff)
downloadferdium-server-2ff924e0cc3494489abf0853080f316cc009e18a.tar.gz
ferdium-server-2ff924e0cc3494489abf0853080f316cc009e18a.tar.zst
ferdium-server-2ff924e0cc3494489abf0853080f316cc009e18a.zip
Merge branch 'master' of https://github.com/getferdi/ferdi-server
Diffstat (limited to 'app/Exceptions')
-rw-r--r--app/Exceptions/Handler.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Exceptions/Handler.js b/app/Exceptions/Handler.js
index cb9e10b..14b840e 100644
--- a/app/Exceptions/Handler.js
+++ b/app/Exceptions/Handler.js
@@ -1,5 +1,6 @@
1 1
2const BaseExceptionHandler = use('BaseExceptionHandler'); 2const BaseExceptionHandler = use('BaseExceptionHandler');
3const Sentry = require('@sentry/node');
3 4
4/** 5/**
5 * This class handles all exceptions thrown during 6 * This class handles all exceptions thrown during
@@ -39,7 +40,8 @@ class ExceptionHandler extends BaseExceptionHandler {
39 * 40 *
40 * @return {void} 41 * @return {void}
41 */ 42 */
42 async report() { 43 async report(error) {
44 Sentry.captureException(error);
43 return true; 45 return true;
44 } 46 }
45} 47}