From 4605fc91620a7c144a563dea176aea11cbaced26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 12 Jan 2022 18:08:28 +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 | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/function.php b/function.php index 2bdb7094..3a5612f7 100644 --- a/function.php +++ b/function.php @@ -1242,18 +1242,15 @@ if (!function_exists('error_trigger_format')) { function error_trigger_format(\Throwable|\Error $throwable): string { $message = ' -Throwable: ' . $throwable->getMessage() . ' - ' . $throwable->getFile() . " at line " . $throwable->getLine(); +Throwable: ' . $throwable->getMessage() . "\t\n" . ' ' . $throwable->getFile() . " at line " . $throwable->getLine() . "\t\n"; - $message .= ' - trance - '; + $message .= ' trance' . "\t\n"; foreach ($throwable->getTrace() as $value) { if (!isset($value['file'])) { continue; } - $message .= ' - ' . $value['file'] . '->' . $value['line'] . '(' . ($value['class'] ?? 'static') . '::' . ($value['function'] ?? 'function') . ')'; + $message .= "\t" . ' + ' . $value['file'] . '->' . $value['line'] . '(' . ($value['class'] ?? 'static') . '::' . ($value['function'] ?? 'function') . ')' . "\t"; } return print_r("\033[1;31,37m" . $message . "\33[41m", true); }