diff options
author | vantezzen <hello@vantezzen.io> | 2020-04-02 14:22:55 +0200 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2020-04-02 14:22:55 +0200 |
commit | 2ff924e0cc3494489abf0853080f316cc009e18a (patch) | |
tree | a6bb51f77c126f6174a595dda0dbfbfd03b006c8 /app/Exceptions/Handler.js | |
parent | Add new home page (diff) | |
parent | Merge pull request #22 from getferdi/dependabot/npm_and_yarn/acorn-7.1.1 (diff) | |
download | ferdium-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/Handler.js')
-rw-r--r-- | app/Exceptions/Handler.js | 4 |
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 | ||
2 | const BaseExceptionHandler = use('BaseExceptionHandler'); | 2 | const BaseExceptionHandler = use('BaseExceptionHandler'); |
3 | const 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 | } |