+ Show error message if tmp/log not exist and debug is enabled.

This commit is contained in:
dingguodong
2024-03-27 10:16:53 +08:00
parent b45e4530d3
commit 288174b6a2
+2
View File
@@ -3100,6 +3100,8 @@ class baseRouter
if(!function_exists('error_get_last')) return;
$error = error_get_last();
if($error) $this->saveError($error['type'], $error['message'], $error['file'], $error['line']);
if(!empty($this->config->debug) && (!is_dir($this->logRoot) || !is_writable($this->logRoot))) helper::end('ERROR: ' . $error['message']);
}
/**