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
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -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)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue