mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Better error handling for issue #168
This commit is contained in:
31
resources/views/emails/error-html.twig
Normal file
31
resources/views/emails/error-html.twig
Normal file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
|
||||
Firefly III ran into an error: <span style="font-family: monospace;">{{ errorMessage }}</span>.
|
||||
</p>
|
||||
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
|
||||
This error occured in file <span style="font-family: monospace;">{{ file }}</span> on line {{ line }} with code {{ code }}.
|
||||
</p>
|
||||
|
||||
<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
|
||||
can forward this message to
|
||||
<a href="mailto:thegrumpydictator@gmail.com?subject=BUG!">thegrumpydictator@gmail.com</a>.
|
||||
This can help fix the bug you just encountered.
|
||||
</p>
|
||||
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
|
||||
If you prefer, you can also open a new issue on <a href="https://github.com/JC5/firefly-iii/issues/new">Github</a>.
|
||||
</p>
|
||||
|
||||
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
|
||||
The full stacktrace is below:</p>
|
||||
<p style="font-family: monospace;font-size:11px;color:#aaa">
|
||||
{{ stacktrace|nl2br }}
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
15
resources/views/emails/error.twig
Normal file
15
resources/views/emails/error.twig
Normal file
@@ -0,0 +1,15 @@
|
||||
Firefly III ran into an error: {{ errorMessage }}.
|
||||
|
||||
This error occured in file "{{ file }}" on line {{ line }} with code {{ code }}.
|
||||
|
||||
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
|
||||
the bug you just encountered.
|
||||
|
||||
If you prefer, you can also open a new issue here:
|
||||
|
||||
https://github.com/JC5/firefly-iii/issues/new
|
||||
|
||||
The full stacktrace is below:
|
||||
|
||||
{{ stacktrace }}
|
Reference in New Issue
Block a user