diff --git a/stepmania/src/RageLog.cpp b/stepmania/src/RageLog.cpp index 98a165e06b..4c3087a81d 100644 --- a/stepmania/src/RageLog.cpp +++ b/stepmania/src/RageLog.cpp @@ -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 ); diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp b/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp index 310b2efee2..1cb040bf91 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp @@ -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()