From 0bcb779acbc4366c0533027d59a9cd5da9d89991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 1 Aug 2022 00:05:03 +0200 Subject: [PATCH] Present more info to user in case of save failure --- src/openrct2/park/ParkFile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index 2273bb1145..592d1b4a73 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -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(e.what()); + context_show_error(STR_FILE_DIALOG_TITLE_SAVE_SCENARIO, STR_STRING, ft); } gfx_invalidate_screen();