From f14a379ee909357db60d47096f145d5561f74acf Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Wed, 15 Jan 2014 01:47:16 +0100 Subject: [PATCH] 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. --- src/filesystem.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/filesystem.cpp b/src/filesystem.cpp index dc0dcb6..5be95b1 100644 --- a/src/filesystem.cpp +++ b/src/filesystem.cpp @@ -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)