fix vars and reporting

This commit is contained in:
flash 2016-11-06 23:19:35 +01:00
parent feea8de29f
commit 5115d05ada
4 changed files with 11 additions and 9 deletions

View file

@ -38,13 +38,13 @@ class ExceptionHandler
*/ */
public static function exception(Throwable $ex) public static function exception(Throwable $ex)
{ {
$report = config('dev.report_host'); $report = strlen(config('dev.report_host')) > 0;
if ($report !== null) { if ($report) {
self::report($ex, $report); self::report($ex, $report);
} }
self::view($ex, $report !== null); self::view($ex, $report);
} }
/** /**

View file

@ -14,7 +14,7 @@
; ; sqlite ; ; sqlite
; driver = sqlite ; driver = sqlite
; database = sakura.sq3 ; database = sakura.db3
; ; Although the option exists, setting a table prefix for sqlite breaks some migration related things. ; ; Although the option exists, setting a table prefix for sqlite breaks some migration related things.
; prefix = ; prefix =

View file

@ -14,13 +14,13 @@
<p> <p>
The page you are looking for experienced a severe explosion. The page you are looking for experienced a severe explosion.
</p> </p>
{% if reported %} {% if reported is defined and reported %}
<p> <p>
The developers have been notified of this issue, sorry for the inconvenience! The developers have been notified of this issue, sorry for the inconvenience!
</p> </p>
{% endif %} {% endif %}
<hr> <hr>
{% if message %} {% if message is defined %}
<h2> <h2>
{{ message }} {{ message }}
</h2> </h2>

View file

@ -15,9 +15,11 @@
The page you are looking for is temporarily unavailable. The page you are looking for is temporarily unavailable.
</p> </p>
<hr> <hr>
{% if message is defined %}
<h2> <h2>
{{ message }} {{ message }}
</h2> </h2>
{% endif %}
<h3> <h3>
HTTP 503 - Service unavailable HTTP 503 - Service unavailable
<br> <br>