From cfbebeb951d37ae6e51e80010a726b8054fc9e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 12 Jan 2022 18:26:54 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- function.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/function.php b/function.php index c06330a5..fbf3b1ea 100644 --- a/function.php +++ b/function.php @@ -1241,16 +1241,14 @@ if (!function_exists('error_trigger_format')) { */ function error_trigger_format(\Throwable|\Error $throwable): string { - $message = ' -Throwable: ' . $throwable->getMessage() . "\t\n" . ' ' . $throwable->getFile() . " at line " . $throwable->getLine() . "\t\n"; + $message = "\tThrowable: " . $throwable->getMessage() . "\t\n\t" . ' ' . $throwable->getFile() . " at line " . $throwable->getLine(); - $message .= ' trance' . "\t\n"; + $message .= "\t trance"; foreach ($throwable->getTrace() as $value) { if (!isset($value['file'])) { continue; } - $message .= ' - ' . $value['file'] . "\t" . $value['line'] . "\t" . ($value['class'] ?? 'static') . '::' . ($value['function'] ?? 'function') . "\t"; + $message .= "\t" . $value['file'] . "\t" . $value['line'] . "\t" . ($value['class'] ?? 'static') . '::' . ($value['function'] ?? 'function'); } return "\033[41;37m" . $message . "\033[0m"; }