1
0
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:
Michał Janiszewski
2022-08-01 00:05:03 +02:00
parent fe9e60975f
commit 0bcb779acb

View File

@@ -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();