add error checking

This commit is contained in:
Glenn Maynard
2003-08-05 01:28:48 +00:00
parent 122f9dfbe3
commit 91057359fa
+5
View File
@@ -90,7 +90,12 @@ RageLog::RageLog()
// Open log file and leave it open.
m_fileLog = Ragefopen( LOG_PATH, "w" );
if( m_fileLog == NULL )
RageException::Throw( " Couldn't open log.txt: %s", strerror(errno) );
m_fileInfo = Ragefopen( INFO_PATH, "w" );
if( m_fileInfo == NULL )
RageException::Throw( " Couldn't open info.txt: %s", strerror(errno) );
#if defined(_MSC_VER)
this->Trace( "Last compiled on %s.", __TIMESTAMP__ );