Skip to content

Firefly III: a personal finances manager

Try changes to the handler

James Colebf778d2fca9d
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php
index 3595acf0c3..43257bab07 100644
--- a/app/Exceptions/Handler.php
+++ b/app/Exceptions/Handler.php
@@ -12,7 +12,7 @@ use Log;
use Mail;
use Swift_TransportException;
use Symfony\Component\HttpKernel\Exception\HttpException;
-
+use Auth;
/**
* Class Handler
*
@@ -73,7 +73,7 @@ class Handler extends ExceptionHandler
// mail?
try {
$email = env('SITE_OWNER');
- $user = $request->user();
+ $user = Auth::user();
$args = [
'errorMessage' => $exception->getMessage(),
'stacktrace' => $exception->getTraceAsString(),