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:
parent
64cb4ee4f1
commit
f14a379ee9
|
@ -620,8 +620,7 @@ struct FileSystemPrivate
|
|||
const char *foundName = completeFileName(filename, type, foundExt);
|
||||
|
||||
if (!foundName)
|
||||
throw Exception(Exception::NoFileError,
|
||||
"No such file or directory - %s", filename);
|
||||
throw Exception(Exception::NoFileError, "%s", filename);
|
||||
|
||||
PHYSFS_File *handle = PHYSFS_openRead(foundName);
|
||||
if (!handle)
|
||||
|
|
Loading…
Reference in New Issue