better output

This commit is contained in:
Glenn Maynard
2003-12-19 08:09:58 +00:00
parent eabde11478
commit 2d01ba7d00
2 changed files with 5 additions and 11 deletions
+4 -10
View File
@@ -99,17 +99,11 @@ RageLog::RageLog()
remove( INFO_PATH );
// Open log file and leave it open.
g_fileLog.Open( LOG_PATH, RageFile::WRITE );
if( !g_fileLog.Open( LOG_PATH, RageFile::WRITE ) )
fprintf( stderr, "Couldn't open %s: %s", LOG_PATH, g_fileLog.GetError().c_str() );
// Failing to open shouldn't be fatal
//if( g_fileLog == NULL )
// RageException::Throw( " Couldn't open log.txt: %s", strerror(errno) );
g_fileInfo.Open( INFO_PATH, RageFile::WRITE );
// Failing to open shouldn't be fatal
//if( g_fileInfo == NULL )
// RageException::Throw( " Couldn't open info.txt: %s", strerror(errno) );
if( !g_fileInfo.Open( INFO_PATH, RageFile::WRITE ) )
fprintf( stderr, "Couldn't open %s: %s", INFO_PATH, g_fileInfo.GetError().c_str() );
this->Info( PRODUCT_NAME_VER );
@@ -16,7 +16,7 @@ MemoryCardDriver_Linux::MemoryCardDriver_Linux()
m_lastModTime = 0;
m_fds = open(USB_DEVICE_LIST_FILE, O_RDONLY);
if( m_fds == -1 )
LOG->Warn( "Failed to open '%s'", USB_DEVICE_LIST_FILE );
LOG->Warn( "Failed to open \"%s\": %s", USB_DEVICE_LIST_FILE, strerror(errno) );
}
MemoryCardDriver_Linux::~MemoryCardDriver_Linux()