ThinkPHP 5.1页面报错文件及路径为:

// 异常页面的模板文件
'exception_tmpl' => Env::get('think_path') . 'tpl/think_exception.tpl',

预警处理路径为:/thinkphp/library/think/exception/Handle.php

在如下代码后加入预警程序:

include Container::get(&...