error output

This commit is contained in:
Glenn Maynard
2003-12-02 19:12:57 +00:00
parent 3e8cf666ba
commit bd7916d363
+2 -2
View File
@@ -56,8 +56,8 @@ bool Model::LoadMilkshapeAscii( CString sPath )
const CString sDir = Dirname( sPath );
FILE *file = fopen (sPath, "rt");
if (!file)
RageException::Throw( "Model::LoadMilkshapeAscii Could not open '%s'.", sPath.c_str() );
if( !file )
RageException::Throw( "Model::LoadMilkshapeAscii Could not open \"%s\": %s", sPath.c_str(), strerror(errno) );
Clear ();