Merge branch 'master' of https://github.com/flashwave/sakura
This commit is contained in:
commit
612d579069
4 changed files with 11 additions and 9 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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 =
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Reference in a new issue