show error message

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