优化数据库连接错误提示
This commit is contained in:
@@ -29,6 +29,7 @@ function funException($e) {
|
|||||||
$error['file'] = $e->getFile();
|
$error['file'] = $e->getFile();
|
||||||
$error['line'] = $e->getLine();
|
$error['line'] = $e->getLine();
|
||||||
}
|
}
|
||||||
|
echo($error['message'].$error['file']." 第 ".$error['line']." 行.\r\n".$e->getTraceAsString()."\r\n");
|
||||||
$db->posterror($error['message'].$error['file']." 第 ".$error['line']." 行.\r\n".$e->getTraceAsString(),'warning');
|
$db->posterror($error['message'].$error['file']." 第 ".$error['line']." 行.\r\n".$e->getTraceAsString(),'warning');
|
||||||
}
|
}
|
||||||
set_error_handler('funError');
|
set_error_handler('funError');
|
||||||
|
|||||||
Reference in New Issue
Block a user