mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Some changes to the error handler
This commit is contained in:
@@ -12,7 +12,6 @@ use Log;
|
||||
use Mail;
|
||||
use Swift_TransportException;
|
||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||
use Auth;
|
||||
|
||||
/**
|
||||
* Class Handler
|
||||
@@ -51,15 +50,17 @@ class Handler extends ExceptionHandler
|
||||
// mail?
|
||||
try {
|
||||
$email = env('SITE_OWNER');
|
||||
|
||||
$user = $request->user();
|
||||
$args = [
|
||||
'errorMessage' => $exception->getMessage(),
|
||||
'stacktrace' => $exception->getTraceAsString(),
|
||||
'file' => $exception->getFile(),
|
||||
'line' => $exception->getLine(),
|
||||
'code' => $exception->getCode(),
|
||||
'loggedIn' => Auth::check(),
|
||||
'user' => Auth::user(),
|
||||
'loggedIn' => !is_null($user),
|
||||
'user' => $user,
|
||||
'ip' => $request->ip(),
|
||||
|
||||
];
|
||||
|
||||
Mail::send(
|
||||
|
Reference in New Issue
Block a user