change error message

This commit is contained in:
crazywhalecc 2023-03-21 00:21:17 +08:00
parent 4fb6d8cafd
commit 79efecb5a9
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -77,8 +77,8 @@ class BuildCliCommand extends BuildCommand
if ($input->getOption('debug')) { if ($input->getOption('debug')) {
ExceptionHandler::getInstance()->handle($e); ExceptionHandler::getInstance()->handle($e);
} else { } else {
logger()->critical('Build failed, please check terminal output, or build with --debug option to see more details.'); logger()->critical('Build failed with ' . get_class($e) . ': ' . $e->getMessage());
logger()->critical($e->getMessage()); logger()->critical('Please check with --debug option to see more details.');
} }
return 1; return 1;
} }