From 9a9a55aa49f0e657883ed4e32576073539a4a05b Mon Sep 17 00:00:00 2001 From: gibbed Date: Sun, 4 Aug 2019 01:22:01 -0500 Subject: [PATCH] [Core] Report the actual reason config parse failed. --- src/xenia/config.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xenia/config.cc b/src/xenia/config.cc index e068f3109..210813f54 100644 --- a/src/xenia/config.cc +++ b/src/xenia/config.cc @@ -21,8 +21,9 @@ bool sortCvar(cvar::IConfigVar* a, cvar::IConfigVar* b) { std::shared_ptr ParseConfig(std::string config_path) { try { return cpptoml::parse_file(config_path); - } catch (cpptoml::parse_exception) { - xe::FatalError("Failed to parse config file: %s", config_path.c_str()); + } catch (cpptoml::parse_exception e) { + xe::FatalError("Failed to parse config file '%s':\n\n%s", + config_path.c_str(), e.what()); return nullptr; } }