|
@@ -54,9 +54,7 @@ class Handler extends ExceptionHandler
|
|
|
public function render($request, Throwable $exception)
|
|
|
{
|
|
|
if ($exception instanceof ViewException) {
|
|
|
- return response([
|
|
|
- 'message' => "主题初始化发生错误,请在后台对主题检查或配置后重试。"
|
|
|
- ]);
|
|
|
+ abort(500, "主题渲染失败。如更新主题参数参数发生变化请重新配置主题后再试。");
|
|
|
}
|
|
|
return parent::render($request, $exception);
|
|
|
}
|