From 288174b6a2e171b2c263ed19e806de992fcbb3cb Mon Sep 17 00:00:00 2001 From: dingguodong Date: Wed, 27 Mar 2024 10:15:32 +0800 Subject: [PATCH] + Show error message if tmp/log not exist and debug is enabled. --- framework/base/router.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index d2e601f345..130005da55 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -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']); } /**