error handling fixes

This commit is contained in:
Glenn Maynard
2004-06-14 01:12:22 +00:00
parent 40c9749d54
commit 87823229c5
6 changed files with 15 additions and 15 deletions
+4 -2
View File
@@ -697,11 +697,13 @@ void Song::TidyUpData()
continue; // skip
CString sPath = m_sSongDir + arrayImages[i];
/* We only care about the dimensions. */
RageSurface *img = RageSurfaceUtils::LoadFile( sPath, true );
CString error;
RageSurface *img = RageSurfaceUtils::LoadFile( sPath, error, true );
if( !img )
{
LOG->Trace("Couldn't load '%s': %s", sPath.c_str(), SDL_GetError());
LOG->Trace( "Couldn't load '%s': %s", sPath.c_str(), error.c_str() );
continue;
}