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\Input;
use Snowflake\Abstracts\Kernel;
use Snowflake\Core\Json;
use Snowflake\Crontab\CrontabProviders;
use Snowflake\Exception\NotFindClassException;
use stdClass;
@@ -145,7 +146,7 @@ class Application extends BaseApplication
}
response()->send($manager->execCommand($class));
} catch (\Throwable $exception) {
var_export($exception);
var_export(Json::encode($exception));
response()->send(implode("\n", [
'Msg: ' . $exception->getMessage(),
'Line: ' . $exception->getLine(),