This commit is contained in:
2022-09-25 17:16:40 +08:00
parent eda1955956
commit d960f518be
+1 -1
View File
@@ -1161,7 +1161,7 @@ if (!function_exists('throwable')) {
*/ */
function throwable(\Throwable|\Error $throwable): string function throwable(\Throwable|\Error $throwable): string
{ {
$message = $throwable->getMessage() . ' ' . $throwable->getFile() . " at line " . $throwable->getLine() . PHP_EOL; $message = $throwable->getMessage() . PHP_EOL . $throwable->getFile() . " at line " . $throwable->getLine() . PHP_EOL;
foreach ($throwable->getTrace() as $value) { foreach ($throwable->getTrace() as $value) {
if (!isset($value['file'])) { if (!isset($value['file'])) {
continue; continue;