diff options
Diffstat (limited to 'app/Exceptions')
-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 | } |