diff --git a/app/Http/Controllers/NotificationController.php b/app/Http/Controllers/NotificationController.php index 23636af..9137e83 100644 --- a/app/Http/Controllers/NotificationController.php +++ b/app/Http/Controllers/NotificationController.php @@ -81,10 +81,10 @@ class NotificationController extends Controller 'status' => 'success', 'affected' => $affected ]); - } catch (\Exception $e) { + } catch (\Throwable $e) { return response()->json([ 'status' => 'failure', - 'message' => 'Internal error: ' . $e->getMessage() + 'message' => 'Internal error: ' . $e->getMessage() . ' in ' . $e->getFile() . ':' . $e->getLine() ], 500); } }