From b8d5a8892aa62747bc9fd7db18cb702e6c12ae4f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 26 Feb 2005 03:35:10 +0000 Subject: [PATCH] better error reporting --- stepmania/src/ActorUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ActorUtil.cpp b/stepmania/src/ActorUtil.cpp index 6fa63fa4b0..c3536f8133 100644 --- a/stepmania/src/ActorUtil.cpp +++ b/stepmania/src/ActorUtil.cpp @@ -255,7 +255,7 @@ Actor* ActorUtil::MakeActor( const RageTextureID &ID ) XNode xml; PARSEINFO pi; if( !xml.LoadFromFile( ID.filename, &pi ) ) - RageException::Throw( pi.error_string ); + RageException::Throw( ssprintf("Error loading %s: %s", ID.filename.c_str(), pi.error_string.c_str()) ); CString sDir = Dirname( ID.filename ); return LoadFromActorFile( sDir, &xml ); } @@ -308,7 +308,7 @@ Actor* ActorUtil::MakeActor( const RageTextureID &ID ) XNode xml; PARSEINFO pi; if( !xml.LoadFromFile( sXml, &pi ) ) - RageException::Throw( pi.error_string ); + RageException::Throw( ssprintf("Error loading %s: %s", sXml.c_str(), pi.error_string.c_str()) ); return LoadFromActorFile( sDir, &xml ); } else