better output
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user