From 2d101a521225061dd8bba9fc055a92c738e313fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Thu, 8 Dec 2022 22:38:17 +0100 Subject: [PATCH] Provide additional information when rejecting unknown tile element --- src/openrct2/rct12/RCT12.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openrct2/rct12/RCT12.h b/src/openrct2/rct12/RCT12.h index 16b3e24dfc..ad68b6c38d 100644 --- a/src/openrct2/rct12/RCT12.h +++ b/src/openrct2/rct12/RCT12.h @@ -290,7 +290,9 @@ constexpr TileElementType ToOpenRCT2TileElementType(RCT12TileElementType rct12ty return static_cast(rct12type); default: - throw std::runtime_error("This tile element type cannot be converted directly!"); + throw std::runtime_error( + "This tile element type cannot be converted directly! Tile element type: " + + std::to_string(static_cast(rct12type))); } }