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
+3 -2
View File
@@ -301,10 +301,11 @@ void BannerCache::CacheBanner( CString BannerPath )
void BannerCache::CacheBannerInternal( CString BannerPath )
{
RageSurface *img = RageSurfaceUtils::LoadFile( BannerPath );
CString error;
RageSurface *img = RageSurfaceUtils::LoadFile( BannerPath, error );
if( img == NULL )
{
LOG->Warn( "BannerCache::CacheBanner: Couldn't load %s: %s", BannerPath.c_str(), SDL_GetError() );
LOG->Warn( "BannerCache::CacheBanner: Couldn't load %s: %s", BannerPath.c_str(), error.c_str() );
return;
}