From 398fb1a1b314fb44339f70dece4fe6a613069c2b Mon Sep 17 00:00:00 2001 From: Frankie Date: Sun, 31 Dec 2023 02:06:10 +0000 Subject: Add sentry, update dirlist.css --- app/Exceptions/Handler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/Exceptions') diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 56af264..26fbddf 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -24,7 +24,9 @@ class Handler extends ExceptionHandler public function register(): void { $this->reportable(function (Throwable $e) { - // + if (app()->bound('sentry')) { + app('sentry')->captureException($e); + } }); } } -- cgit v1.2.3-54-g00ecf