Log exception when an error occurs

This commit is contained in:
Hielke Morsink authored and GitHub committed 2022-05-29 08:30:42 +02:00
1 parent 999f76cfc8
commit c8df66fab9
1 file changed
+2 -1
+2 -1
View File
@@ -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();