show error message

This commit is contained in:
Glenn Maynard
2004-07-13 00:03:47 +00:00
parent b95b5b9417
commit 4d914765b9
+2 -3
View File
@@ -174,8 +174,7 @@ bool BMSLoader::LoadFromBMSFile( const CString &sPath, Steps &out )
RageFile file; RageFile file;
if( !file.Open(sPath) ) if( !file.Open(sPath) )
RageException::Throw( "Failed to open \"%s\": %s", sPath.c_str(), file.GetError().c_str() ); RageException::Throw( "Failed to open \"%s\" for reading: %s", sPath.c_str(), file.GetError().c_str() );
while( !file.AtEOF() ) while( !file.AtEOF() )
{ {
CString line; CString line;
@@ -472,7 +471,7 @@ bool BMSLoader::LoadFromDir( CString sDir, Song &out )
RageFile file; RageFile file;
if( !file.Open(sPath) ) if( !file.Open(sPath) )
RageException::Throw( "Failed to open %s for reading.", sPath.c_str() ); RageException::Throw( "Failed to open \"%s\" for reading: %s", sPath.c_str(), file.GetError().c_str() );
while( !file.AtEOF() ) while( !file.AtEOF() )
{ {
CString line; CString line;