show error message
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user