From c8df66fab9e9f6628d3112fc5fb2e9cb1f458c1c Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Sun, 29 May 2022 08:30:42 +0200 Subject: [PATCH] Log exception when an error occurs --- src/openrct2/park/ParkFile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2/park/ParkFile.cpp b/src/openrct2/park/ParkFile.cpp index 595c21b4af..50a90ff5a5 100644 --- a/src/openrct2/park/ParkFile.cpp +++ b/src/openrct2/park/ParkFile.cpp @@ -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();