From e96a0cca00aa21ff3442382d99ca3986968708b5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 12 Jul 2004 23:47:39 +0000 Subject: [PATCH] show error messages --- stepmania/src/NotesLoaderDWI.cpp | 5 ++--- stepmania/src/NotesLoaderKSF.cpp | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/stepmania/src/NotesLoaderDWI.cpp b/stepmania/src/NotesLoaderDWI.cpp index 46bcc9753e..5f27fa5ea8 100644 --- a/stepmania/src/NotesLoaderDWI.cpp +++ b/stepmania/src/NotesLoaderDWI.cpp @@ -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