Now we print the info about where we look for data files.

It was quite tiresome to try and figure out why certain tests that depend on data do not work. Now we tell the user exactly where we look for the data.
This commit is contained in:
Timofey 2015-06-25 16:50:07 +03:00 committed by Alex Zolotarev
parent c0e7c54cee
commit c46b1cbbe9

View file

@ -48,7 +48,9 @@ string Platform::ReadPathForFile(string const & file, string searchScope) const
return fullPath;
}
MYTHROW(FileAbsentException, ("File", file, "doesn't exist in the scope", searchScope));
string possiblePaths = m_writableDir + "\n" + m_resourcesDir + "\n" + m_settingsDir + "\n" + m_optionalDir;
MYTHROW(FileAbsentException, ("File", file, "doesn't exist in the scope", searchScope, "Have been looking in:\n", possiblePaths));
}
string Platform::HashUniqueID(string const & s)