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"))
|
args.Arg(1) + ".conf"))
|
||||||
break;
|
break;
|
||||||
if (i > 5)
|
if (i > 5)
|
||||||
|
{
|
||||||
|
logging::Info("cat_load: Force crash. Couldn't load config");
|
||||||
std::terminate();
|
std::terminate();
|
||||||
|
}
|
||||||
std::this_thread::sleep_for(std::chrono_literals::operator""s(3));
|
std::this_thread::sleep_for(std::chrono_literals::operator""s(3));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -96,7 +96,10 @@ bool settings::SettingsReader::loadFrom(std::string path)
|
|||||||
stream.open(path, std::ios::in | std::ios::binary);
|
stream.open(path, std::ios::in | std::ios::binary);
|
||||||
|
|
||||||
if (stream.bad() || stream.fail())
|
if (stream.bad() || stream.fail())
|
||||||
|
{
|
||||||
|
logging::Info("cat_load: Can't access file!");
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
while (!stream.fail())
|
while (!stream.fail())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user