Added logging info

This commit is contained in:
TotallyNotElite 2018-09-14 18:30:21 +02:00
parent 78d0b1cc35
commit fa3e8daa18
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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())
{