mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-25 01:52:31 +00:00
Actually state the file instead of the directory in some error messages.
This was SVN commit r16802.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user