From fb4b9f4a24ca828dd45d4f0d37a4088ec83907e1 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 24 Apr 2021 20:28:14 +0800 Subject: [PATCH] modify --- System/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Application.php b/System/Application.php index 19cb1991..9580d1d2 100644 --- a/System/Application.php +++ b/System/Application.php @@ -146,7 +146,7 @@ class Application extends BaseApplication } response()->send($manager->execCommand($class)); } catch (\Throwable $exception) { - var_export(Json::encode($exception)); + var_export(current($exception->getTrace())); response()->send(implode("\n", [ 'Msg: ' . $exception->getMessage(), 'Line: ' . $exception->getLine(),