This commit is contained in:
flash 2016-11-08 17:12:27 +01:00
commit 612d579069
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>
<h2> {% if message is defined %}
{{ message }} <h2>
</h2> {{ message }}
</h2>
{% endif %}
<h3> <h3>
HTTP 503 - Service unavailable HTTP 503 - Service unavailable
<br> <br>