From 0df10cc41dfef2981460ef5d02b1cf68cd58aef2 Mon Sep 17 00:00:00 2001 From: Ted John Date: Thu, 31 Aug 2017 17:52:26 +0100 Subject: [PATCH] Log exception messages --- src/openrct2/core/FileIndex.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/openrct2/core/FileIndex.hpp b/src/openrct2/core/FileIndex.hpp index 36594b5ba1..5e9d527f45 100644 --- a/src/openrct2/core/FileIndex.hpp +++ b/src/openrct2/core/FileIndex.hpp @@ -235,9 +235,10 @@ private: Console::WriteLine("%s out of date", _name.c_str()); } } - catch (const Exception &) + catch (const std::exception &e) { Console::Error::WriteLine("Unable to load index: '%s'.", _indexPath.c_str()); + Console::Error::WriteLine("%s", e.what()); } return std::make_tuple(loadedItems, items); } @@ -265,9 +266,10 @@ private: Serialise(&fs, item); } } - catch (const Exception &) + catch (const std::exception &e) { Console::Error::WriteLine("Unable to save index: '%s'.", _indexPath.c_str()); + Console::Error::WriteLine("%s", e.what()); } }