mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 03:53:07 +01:00
Present more info to user in case of save failure
This commit is contained in:
@@ -2312,6 +2312,10 @@ int32_t scenario_save(u8string_view path, int32_t flags)
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
log_error(e.what());
|
||||
|
||||
Formatter ft;
|
||||
ft.Add<const char*>(e.what());
|
||||
context_show_error(STR_FILE_DIALOG_TITLE_SAVE_SCENARIO, STR_STRING, ft);
|
||||
}
|
||||
|
||||
gfx_invalidate_screen();
|
||||
|
||||
Reference in New Issue
Block a user