mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-03 08:07:45 +00:00
Common: Add file read error string to JsonFromFile
This commit is contained in:
parent
1ae0b23265
commit
b52f8bdde3
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue