From 105b87aa9fc03e2b178fa2f8b13c711bfa123da4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 8 Jul 2004 01:58:53 +0000 Subject: [PATCH] error check --- stepmania/src/Model.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Model.cpp b/stepmania/src/Model.cpp index e64c0773b2..bcdeb76eba 100644 --- a/stepmania/src/Model.cpp +++ b/stepmania/src/Model.cpp @@ -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 );