Improve console output on log creation

This commit is contained in:
Sebastian Messmer 2015-10-28 15:27:58 +01:00
parent dd4c9cbf4b
commit dceeeecdd7

View File

@ -92,9 +92,9 @@ CryConfigFile loadOrCreateConfig(const ProgramOptions &options) {
auto configFile = determineConfigFile(options);
auto console = make_unique_ref<IOStreamConsole>();
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);
std::cout << "done" << std::endl;
std::cout << "Loading config file...done" << std::endl;
if (config == none) {
std::cerr << "Could not load config file. Did you enter the correct password?" << std::endl;
exit(1);