diff --git a/src/settings/SettingCommands.cpp b/src/settings/SettingCommands.cpp index d705cd1d..ab4b0685 100755 --- a/src/settings/SettingCommands.cpp +++ b/src/settings/SettingCommands.cpp @@ -115,7 +115,10 @@ void load_thread(const CCommand &args) args.Arg(1) + ".conf")) break; if (i > 5) + { + logging::Info("cat_load: Force crash. Couldn't load config"); std::terminate(); + } std::this_thread::sleep_for(std::chrono_literals::operator""s(3)); } #endif diff --git a/src/settings/SettingsIO.cpp b/src/settings/SettingsIO.cpp index 5edba2ee..b489606a 100755 --- a/src/settings/SettingsIO.cpp +++ b/src/settings/SettingsIO.cpp @@ -96,7 +96,10 @@ bool settings::SettingsReader::loadFrom(std::string path) stream.open(path, std::ios::in | std::ios::binary); if (stream.bad() || stream.fail()) + { + logging::Info("cat_load: Can't access file!"); return false; + } while (!stream.fail()) {