1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Log exception messages

This commit is contained in:
Ted John
2017-08-31 17:52:26 +01:00
parent dcb78b18d9
commit 0df10cc41d

View File

@@ -235,9 +235,10 @@ private:
Console::WriteLine("%s out of date", _name.c_str());
}
}
catch (const Exception &)
catch (const std::exception &e)
{
Console::Error::WriteLine("Unable to load index: '%s'.", _indexPath.c_str());
Console::Error::WriteLine("%s", e.what());
}
return std::make_tuple(loadedItems, items);
}
@@ -265,9 +266,10 @@ private:
Serialise(&fs, item);
}
}
catch (const Exception &)
catch (const std::exception &e)
{
Console::Error::WriteLine("Unable to save index: '%s'.", _indexPath.c_str());
Console::Error::WriteLine("%s", e.what());
}
}