mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-02 05:02:48 +08:00
改进Error类的appException方法 异常页面发送404信息
简化E快捷方法写法 添加T快捷方法 用于快捷导入Traits
This commit is contained in:
@@ -29,6 +29,12 @@ class Error {
|
||||
$error['line'] = $e->getLine();
|
||||
}
|
||||
$error['trace'] = $e->getTraceAsString();
|
||||
// 记录异常日志
|
||||
Log::record($error['message'],'ERR');
|
||||
// 发送404信息
|
||||
header('HTTP/1.1 404 Not Found');
|
||||
header('Status:404 Not Found');
|
||||
// 输出异常页面
|
||||
self::halt($error);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user