From b52f8bdde3f27935ee0086dc5deebe426c6e2b63 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 19 Apr 2025 16:59:38 +0200 Subject: [PATCH] Common: Add file read error string to JsonFromFile --- Source/Core/Common/JsonUtil.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/Common/JsonUtil.cpp b/Source/Core/Common/JsonUtil.cpp index fa9b8a73c9..ef1b0aaa2c 100644 --- a/Source/Core/Common/JsonUtil.cpp +++ b/Source/Core/Common/JsonUtil.cpp @@ -60,6 +60,7 @@ bool JsonFromFile(const std::string& filename, picojson::value* root, std::strin std::string json_data; if (!File::ReadFileToString(filename, json_data)) { + *error = "Failed to read " + filename; return false; }