From a2a3f0fc40f0b2ab04930be3c4b731bee681a952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 12 Jan 2022 18:27:49 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/function.php b/function.php index fbf3b1ea..a0e13fbc 100644 --- a/function.php +++ b/function.php @@ -1241,14 +1241,14 @@ if (!function_exists('error_trigger_format')) { */ function error_trigger_format(\Throwable|\Error $throwable): string { - $message = "\tThrowable: " . $throwable->getMessage() . "\t\n\t" . ' ' . $throwable->getFile() . " at line " . $throwable->getLine(); + $message = "\n\tThrowable: " . $throwable->getMessage() . "\t\n\t" . ' ' . $throwable->getFile() . " at line " . $throwable->getLine(); - $message .= "\t trance"; + $message .= "\n\t trance"; foreach ($throwable->getTrace() as $value) { if (!isset($value['file'])) { continue; } - $message .= "\t" . $value['file'] . "\t" . $value['line'] . "\t" . ($value['class'] ?? 'static') . '::' . ($value['function'] ?? 'function'); + $message .= "\n\t" . $value['file'] . "\t" . $value['line'] . "\t" . ($value['class'] ?? 'static') . '::' . ($value['function'] ?? 'function'); } return "\033[41;37m" . $message . "\033[0m"; }