mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 22:34:33 +01:00
Fix catching of polymorphic exception
This commit is contained in:
@@ -259,9 +259,9 @@ namespace ObjectFactory
|
||||
}
|
||||
json_decref(jRoot);
|
||||
}
|
||||
catch (std::runtime_error)
|
||||
catch (const std::runtime_error &err)
|
||||
{
|
||||
Console::Error::WriteLine("Unable to open or read '%s'", path.c_str());
|
||||
Console::Error::WriteLine("Unable to open or read '%s': %s", path.c_str(), err.what());
|
||||
|
||||
delete result;
|
||||
result = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user