mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	update: exception message
This commit is contained in:
		| @@ -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); | ||||
|     } | ||||
|   | ||||
							
								
								
									
										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')) | ||||
		Reference in New Issue
	
	Block a user