Present more info to user in case of save failure

This commit is contained in:
Michał Janiszewski committed 2022-08-04 18:42:33 +02:00
1 parent fe9e60975f
commit 0bcb779acb
1 file changed
+4
+4
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();