mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 09:51:40 +00:00
Will inform about the logged in user
This commit is contained in:
@@ -12,6 +12,7 @@ use Log;
|
|||||||
use Mail;
|
use Mail;
|
||||||
use Swift_TransportException;
|
use Swift_TransportException;
|
||||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||||
|
use Auth;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Handler
|
* Class Handler
|
||||||
@@ -57,6 +58,8 @@ class Handler extends ExceptionHandler
|
|||||||
'file' => $exception->getFile(),
|
'file' => $exception->getFile(),
|
||||||
'line' => $exception->getLine(),
|
'line' => $exception->getLine(),
|
||||||
'code' => $exception->getCode(),
|
'code' => $exception->getCode(),
|
||||||
|
'loggedIn' => Auth::check(),
|
||||||
|
'user' => Auth::user(),
|
||||||
];
|
];
|
||||||
|
|
||||||
Mail::send(
|
Mail::send(
|
||||||
|
@@ -12,6 +12,12 @@
|
|||||||
This error occured in file <span style="font-family: monospace;">{{ file }}</span> on line {{ line }} with code {{ code }}.
|
This error occured in file <span style="font-family: monospace;">{{ file }}</span> on line {{ line }} with code {{ code }}.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
{% if loggedIn %}
|
||||||
|
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
|
||||||
|
The error was encountered by user #{{ user.id }}, <a href="mailto:{{ user.email }}">{{ user.email }}</a>.
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
|
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
|
||||||
The full stacktrace is below. If you think this is a bug in Firefly III, you
|
The full stacktrace is below. If you think this is a bug in Firefly III, you
|
||||||
can forward this message to
|
can forward this message to
|
||||||
|
@@ -2,6 +2,10 @@ Firefly III ran into an error: {{ errorMessage }}.
|
|||||||
|
|
||||||
This error occured in file "{{ file }}" on line {{ line }} with code {{ code }}.
|
This error occured in file "{{ file }}" on line {{ line }} with code {{ code }}.
|
||||||
|
|
||||||
|
{% if loggedIn %}
|
||||||
|
The error was encountered by user #{{ user.id }}, {{ user.email }}.
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
The full stacktrace is below. If you think this is a bug in Firefly III, you
|
The full stacktrace is below. If you think this is a bug in Firefly III, you
|
||||||
can forward this message to thegrumpydictator@gmail.com. This can help fix
|
can forward this message to thegrumpydictator@gmail.com. This can help fix
|
||||||
the bug you just encountered.
|
the bug you just encountered.
|
||||||
|
Reference in New Issue
Block a user