This commit is contained in:
2023-11-29 14:18:09 +08:00
parent 5cb7fb73c6
commit 93a3a06963
+1 -2
View File
@@ -923,8 +923,7 @@ if (!function_exists('throwable')) {
if (is_string($throwable)) { if (is_string($throwable)) {
return $throwable; return $throwable;
} }
$message = "\033[31m" . '[' . date('Y-m-d H:i:s') . ']' . $throwable::class . ' ' . $throwable->getMessage() . "\033[0m" . PHP_EOL; $message = "\033[31m" . $throwable::class . ' ' . $throwable->getMessage() . "\033[0m" . PHP_EOL . $throwable->getFile() . " at line " . $throwable->getLine() . PHP_EOL;
$message .= $throwable->getFile() . " at line " . $throwable->getLine() . PHP_EOL;
$file = $throwable->getFile(); $file = $throwable->getFile();
$line = $throwable->getLine(); $line = $throwable->getLine();