mirror of
https://github.com/v2board/v2board.git
synced 2025-01-10 08:09:10 +08:00
update: exception message
This commit is contained in:
parent
de478db2c7
commit
bc5fb4956c
@ -54,9 +54,7 @@ class Handler extends ExceptionHandler
|
|||||||
public function render($request, Throwable $exception)
|
public function render($request, Throwable $exception)
|
||||||
{
|
{
|
||||||
if ($exception instanceof ViewException) {
|
if ($exception instanceof ViewException) {
|
||||||
return response([
|
abort(500, "主题渲染失败。如更新主题参数参数发生变化请重新配置主题后再试。");
|
||||||
'message' => "主题初始化发生错误,请在后台对主题检查或配置后重试。"
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
return parent::render($request, $exception);
|
return parent::render($request, $exception);
|
||||||
}
|
}
|
||||||
|
5
resources/views/errors/500.blade.php
Normal file
5
resources/views/errors/500.blade.php
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
@extends('errors::minimal')
|
||||||
|
|
||||||
|
@section('title', __('Server Error'))
|
||||||
|
@section('code', '500')
|
||||||
|
@section('message', __($exception->getMessage() ?: 'Server Error'))
|
Loading…
Reference in New Issue
Block a user