From ed00228e58e1a4153c2831099b1dc0923e8a2344 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sun, 15 May 2022 19:58:30 +0100 Subject: [PATCH] Log errors to stderr if park load fails --- src/openrct2/Context.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 33d89379c9..39a84157db 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -732,6 +732,8 @@ namespace OpenRCT2 } catch (const ObjectLoadException& e) { + Console::Error::WriteLine("Unable to open park: missing objects"); + // If loading the SV6 or SV4 failed return to the title screen if requested. if (loadTitleScreenFirstOnFail) { @@ -749,6 +751,8 @@ namespace OpenRCT2 } catch (const UnsupportedRCTCFlagException& e) { + Console::Error::WriteLine("Unable to open park: unsupported RCT classic feature"); + // If loading the SV6 or SV4 failed return to the title screen if requested. if (loadTitleScreenFirstOnFail) { @@ -761,6 +765,8 @@ namespace OpenRCT2 } catch (const UnsupportedRideTypeException&) { + Console::Error::WriteLine("Unable to open park: unsupported ride types"); + // If loading the SV6 or SV4 failed return to the title screen if requested. if (loadTitleScreenFirstOnFail) { @@ -771,6 +777,8 @@ namespace OpenRCT2 } catch (const UnsupportedVersionException& e) { + Console::Error::WriteLine("Unable to open park: unsupported park version"); + if (loadTitleScreenFirstOnFail) { title_load();