Made an error message clearer

This commit is contained in:
Olivier Teulière 2010-01-04 21:00:33 +00:00
parent 5e3a3b4ceb
commit d1a1254dbe

View file

@ -82,7 +82,7 @@ unsigned int getFileSize(const string &iFileName)
{
struct stat stat_buf;
if (stat(iFileName.c_str(), &stat_buf) < 0)
throw DicException((fmt(_("Cannot stat file '%1%'")) % iFileName).str());
throw DicException((fmt(_("Could not open file '%1%'")) % iFileName).str());
return (unsigned int)stat_buf.st_size;
}