error check

This commit is contained in:
Glenn Maynard
2004-07-08 01:58:53 +00:00
parent 1b4f84d977
commit 105b87aa9f
+2 -1
View File
@@ -69,7 +69,8 @@ void Model::LoadFromModelFile( CString sPath )
Clear();
IniFile ini;
ini.ReadFile( sPath );
if( !ini.ReadFile( sPath ) )
RageException::Throw( "Model::LoadFromModelFile: Could not open \"%s\": %s", sPath.c_str(), ini.GetError().c_str() );
CString sDir = Dirname( sPath );