Include time and date for errors.

This commit is contained in:
James Cole
2016-02-24 20:42:05 +01:00
parent dd1b4e21f5
commit 2cc5fdcf62
4 changed files with 17 additions and 3 deletions

View File

@@ -72,6 +72,7 @@ class Handler extends ExceptionHandler
$data = [
'class' => get_class($exception),
'errorMessage' => $exception->getMessage(),
'time' => date('r'),
'stackTrace' => $exception->getTraceAsString(),
'file' => $exception->getFile(),
'line' => $exception->getLine(),

View File

@@ -45,7 +45,7 @@ return [
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
'queue' => 'firefly',
'ttr' => 60,
],

View File

@@ -6,8 +6,17 @@
</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> of class (type) "{{ class }}".
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;">
The error was of type "{{ class }}".
</p>
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
The error occured on/at: {{ time }}.
</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>

View File

@@ -1,4 +1,8 @@
Firefly III ran into an error: {{ errorMessage }} of class (type) "{{ class }}".
Firefly III ran into an error: {{ errorMessage }}.
The error was of type "{{ class }}".
The error occured on/at: {{ time }}.
This error occured in file "{{ file }}" on line {{ line }} with code {{ code }}.