Added logging info
This commit is contained in:
parent
78d0b1cc35
commit
fa3e8daa18
@ -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
|
||||
|
@ -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())
|
||||
{
|
||||
|
Reference in New Issue
Block a user