error check

This commit is contained in:
Glenn Maynard
2004-03-28 21:36:13 +00:00
parent bee8234100
commit a84e14ae05
+2 -1
View File
@@ -35,7 +35,8 @@ Actor* LoadFromActorFile( CString sIniPath, CString sLayer )
// TODO: Check for recursive loading
IniFile ini;
ini.SetPath( sIniPath );
ini.ReadFile();
if( !ini.ReadFile() )
RageException::Throw( "%s", ini.error.c_str() );
if( !ini.GetKey(sLayer) )
RageException::Throw( "The file '%s' doesn't have layer '%s'.", sIniPath.c_str(), sLayer.c_str() );