error handling

This commit is contained in:
Glenn Maynard
2007-02-21 10:11:34 +00:00
parent acc0b14ee1
commit b99f9ba239
@@ -42,6 +42,7 @@ RageSoundReader_FileReader *RageSoundReader_FileReader::TryOpenFile( RString fil
{ {
error = ssprintf( "Couldn't open file: %s", file.GetError().c_str() ); error = ssprintf( "Couldn't open file: %s", file.GetError().c_str() );
bKeepTrying = false; bKeepTrying = false;
return NULL;
} }
OpenResult ret = Sample->Open( file.Copy() ); OpenResult ret = Sample->Open( file.Copy() );