Common: Add file read error string to JsonFromFile
This commit is contained in:
parent
1ae0b23265
commit
b52f8bdde3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue