1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-11-27 00:43:47 +00:00

More logging

This commit is contained in:
King_DuckZ 2017-05-15 23:47:01 +01:00
parent 34c23659e9
commit 75bd68c53e

View file

@ -82,6 +82,7 @@ namespace tawashi {
std::ifstream if_mstch(oss.str(), std::ios::binary | std::ios::in);
if (not if_mstch) {
spdlog::get("statuslog")->warn("Couldn't open file \"{}\"", oss.str());
if (parThrow)
throw std::runtime_error(std::string("File \"") + oss.str() + "\" not found");
else