* [misc] Die without any message if an error triggered in non-debug

mode.
This commit is contained in:
dingguodong
2024-06-28 16:59:08 +08:00
committed by 刘永凯
parent e7603e069a
commit 112c2cc4f3
+1 -1
View File
@@ -3204,7 +3204,7 @@ class baseRouter
if(preg_match('/[^\x00-\x80]/', $message)) $message = helper::convertEncoding($message, 'gbk');
/* Only show error when debug is open. */
if(!$this->config->debug) helper::end();
if(!$this->config->debug) die;
$log = (new Exception())->getTraceAsString(); /* Print a backtrace like debug_print_backtrace(). */
$log = str_replace($this->basePath, '', $log); /* Remove the base path from the backtrace. */