fix: Check config is valid

This commit is contained in:
Sergey Kuznetsov
2025-01-14 16:13:11 +00:00
committed by GitHub
parent 2cf849dd12
commit d0f88438ca

View File

@@ -48,8 +48,7 @@ try {
return EXIT_FAILURE;
},
[](app::CliArgs::Action::Run const& run) {
auto const res = app::verifyConfig(run.configPath);
if (res != EXIT_SUCCESS)
if (app::verifyConfig(verify.configPath))
return EXIT_FAILURE;
util::LogService::init(gClioConfig);
@@ -57,8 +56,7 @@ try {
return clio.run(run.useNgWebServer);
},
[](app::CliArgs::Action::Migrate const& migrate) {
auto const res = app::verifyConfig(migrate.configPath);
if (res != EXIT_SUCCESS)
if (app::verifyConfig(verify.configPath))
return EXIT_FAILURE;
util::LogService::init(gClioConfig);