From a84e14ae0595359de09d425329fa4c5d1ab0820f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 28 Mar 2004 21:36:13 +0000 Subject: [PATCH] error check --- stepmania/src/ActorUtil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index d5dc41d096..0a98ca47bd 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -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() );