From 4d914765b9bf8c3716de0bf0fc520c5195a9d3ac Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 13 Jul 2004 00:03:47 +0000 Subject: [PATCH] show error message --- stepmania/src/NotesLoaderBMS.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stepmania/src/NotesLoaderBMS.cpp b/stepmania/src/NotesLoaderBMS.cpp index 03dca945bc..3a13d3f4d5 100644 --- a/stepmania/src/NotesLoaderBMS.cpp +++ b/stepmania/src/NotesLoaderBMS.cpp @@ -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 )