Improve console output on log creation
This commit is contained in:
parent
dd4c9cbf4b
commit
dceeeecdd7
@ -92,9 +92,9 @@ CryConfigFile loadOrCreateConfig(const ProgramOptions &options) {
|
|||||||
auto configFile = determineConfigFile(options);
|
auto configFile = determineConfigFile(options);
|
||||||
auto console = make_unique_ref<IOStreamConsole>();
|
auto console = make_unique_ref<IOStreamConsole>();
|
||||||
auto &keyGenerator = Random::OSRandom();
|
auto &keyGenerator = Random::OSRandom();
|
||||||
std::cout << "Loading config file..." << std::flush;
|
std::cout << "Loading config file..." << std::endl;
|
||||||
auto config = CryConfigLoader(std::move(console), keyGenerator, &askPassword).loadOrCreate(configFile);
|
auto config = CryConfigLoader(std::move(console), keyGenerator, &askPassword).loadOrCreate(configFile);
|
||||||
std::cout << "done" << std::endl;
|
std::cout << "Loading config file...done" << std::endl;
|
||||||
if (config == none) {
|
if (config == none) {
|
||||||
std::cerr << "Could not load config file. Did you enter the correct password?" << std::endl;
|
std::cerr << "Could not load config file. Did you enter the correct password?" << std::endl;
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user