Common: Add file read error string to JsonFromFile

This commit is contained in:
JosJuice 2025-04-19 16:59:38 +02:00
parent 1ae0b23265
commit b52f8bdde3
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}