better error reporting
This commit is contained in:
@@ -255,7 +255,7 @@ Actor* ActorUtil::MakeActor( const RageTextureID &ID )
|
|||||||
XNode xml;
|
XNode xml;
|
||||||
PARSEINFO pi;
|
PARSEINFO pi;
|
||||||
if( !xml.LoadFromFile( ID.filename, &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 );
|
CString sDir = Dirname( ID.filename );
|
||||||
return LoadFromActorFile( sDir, &xml );
|
return LoadFromActorFile( sDir, &xml );
|
||||||
}
|
}
|
||||||
@@ -308,7 +308,7 @@ Actor* ActorUtil::MakeActor( const RageTextureID &ID )
|
|||||||
XNode xml;
|
XNode xml;
|
||||||
PARSEINFO pi;
|
PARSEINFO pi;
|
||||||
if( !xml.LoadFromFile( sXml, &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 );
|
return LoadFromActorFile( sDir, &xml );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user