forked from rosebudai/OpenRCT2-Web
Log exception when an error occurs
This commit is contained in:
1 parent
999f76cfc8
commit
c8df66fab9
1 file changed
+2
-1
@@ -2298,8 +2298,9 @@ int32_t scenario_save(u8string_view path, int32_t flags)
|
||||
parkFile->Save(path);
|
||||
result = true;
|
||||
}
|
||||
catch (const std::exception&)
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
log_error(e.what());
|
||||
}
|
||||
|
||||
gfx_invalidate_screen();
|
||||
|
||||
Reference in new issue
Block a user