Actually state the file instead of the directory in some error messages.

This was SVN commit r16802.
This commit is contained in:
leper
2015-06-21 18:46:33 +00:00
parent 5a0b9b0e70
commit ae4dfe294d
2 changed files with 11 additions and 17 deletions
+3 -3
View File
@@ -832,14 +832,14 @@ static std::vector<std::string> GetJSONData(const VfsPath& path)
}
std::vector<std::string> data;
for (VfsPaths::const_iterator it = pathnames.begin(); it != pathnames.end(); ++it)
for (const VfsPath& p : pathnames)
{
// Load JSON file
CVFSFile file;
PSRETURN ret = file.Load(g_VFS, *it);
PSRETURN ret = file.Load(g_VFS, p);
if (ret != PSRETURN_OK)
{
LOGERROR("GetJSONData: Failed to load file '%s': %s", path.string8(), GetErrorString(ret));
LOGERROR("GetJSONData: Failed to load file '%s': %s", p.string8(), GetErrorString(ret));
continue;
}