show error messages

This commit is contained in:
Glenn Maynard
2004-07-12 23:47:39 +00:00
parent c1d63b3055
commit e96a0cca00
2 changed files with 4 additions and 6 deletions
+2 -3
View File
@@ -337,9 +337,8 @@ bool DWILoader::LoadFromDWIFile( CString sPath, Song &out )
m_sLoadingFile = sPath;
MsdFile msd;
bool bResult = msd.ReadFile( sPath );
if( !bResult )
RageException::Throw( "Error opening file '%s' for reading.", sPath.c_str() );
if( !msd.ReadFile( sPath ) )
RageException::Throw( "Error opening file \"%s\": %s", sPath.c_str(), msd.GetError().c_str() );
for( unsigned i=0; i<msd.GetNumValues(); i++ )
{