diff --git a/function.php b/function.php index b234916c..0d7e023f 100644 --- a/function.php +++ b/function.php @@ -1241,15 +1241,18 @@ if (!function_exists('error_trigger_format')) { */ function error_trigger_format(\Throwable|\Error $throwable): string { - $message = 'Throwable: ' . $throwable->getMessage() . ' + $message = ' +Throwable: ' . $throwable->getMessage() . ' ' . $throwable->getFile() . " at line " . $throwable->getLine() . "\r\n"; - $message .= 'trance' . "\r\n"; + $message .= ' + trance' . "\r\n"; foreach ($throwable->getTrace() as $value) { if (!isset($value['file'])) { continue; } - $message .= $value['file'] . '->' . $value['line'] . '(' . ($value['class'] ?? 'static') . '::' . ($value['function'] ?? 'function') . ')' . PHP_EOL; + $message .= ' + '.$value['file'] . '->' . $value['line'] . '(' . ($value['class'] ?? 'static') . '::' . ($value['function'] ?? 'function') . ')'; } return $message; }