FileSystem: Trim redundant error message on ENOENT

MRI adds the "No such file or directory - " itself;
I guess we can just emulate this behavior everywhere else.
This commit is contained in:
Jonas Kulla 2014-01-15 01:47:16 +01:00
parent 64cb4ee4f1
commit f14a379ee9
1 changed files with 1 additions and 2 deletions

View File

@ -620,8 +620,7 @@ struct FileSystemPrivate
const char *foundName = completeFileName(filename, type, foundExt); const char *foundName = completeFileName(filename, type, foundExt);
if (!foundName) if (!foundName)
throw Exception(Exception::NoFileError, throw Exception(Exception::NoFileError, "%s", filename);
"No such file or directory - %s", filename);
PHYSFS_File *handle = PHYSFS_openRead(foundName); PHYSFS_File *handle = PHYSFS_openRead(foundName);
if (!handle) if (!handle)