This commit is contained in:
as2252258@163.com
2021-04-24 20:27:37 +08:00
parent 2852486c8e
commit 4400c67e7d
+2 -1
View File
@@ -21,6 +21,7 @@ use Snowflake\Abstracts\BaseApplication;
use Snowflake\Abstracts\Config; use Snowflake\Abstracts\Config;
use Snowflake\Abstracts\Input; use Snowflake\Abstracts\Input;
use Snowflake\Abstracts\Kernel; use Snowflake\Abstracts\Kernel;
use Snowflake\Core\Json;
use Snowflake\Crontab\CrontabProviders; use Snowflake\Crontab\CrontabProviders;
use Snowflake\Exception\NotFindClassException; use Snowflake\Exception\NotFindClassException;
use stdClass; use stdClass;
@@ -145,7 +146,7 @@ class Application extends BaseApplication
} }
response()->send($manager->execCommand($class)); response()->send($manager->execCommand($class));
} catch (\Throwable $exception) { } catch (\Throwable $exception) {
var_export($exception); var_export(Json::encode($exception));
response()->send(implode("\n", [ response()->send(implode("\n", [
'Msg: ' . $exception->getMessage(), 'Msg: ' . $exception->getMessage(),
'Line: ' . $exception->getLine(), 'Line: ' . $exception->getLine(),