aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-03-10 16:00:34 +0100
committerLibravatar Bennett <hello@vantezzen.io>2020-03-10 16:00:34 +0100
commit8d61dc572b334e3bfc9cfbe835afe46914d759d8 (patch)
treebb42dd3278dbb47199b7b486db896fe90735ef9d /app
parentBump version number (diff)
downloadferdium-server-8d61dc572b334e3bfc9cfbe835afe46914d759d8.tar.gz
ferdium-server-8d61dc572b334e3bfc9cfbe835afe46914d759d8.tar.zst
ferdium-server-8d61dc572b334e3bfc9cfbe835afe46914d759d8.zip
#15 Add error capturing
Diffstat (limited to 'app')
-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}