error reporting

This commit is contained in:
Glenn Maynard
2003-07-15 19:47:45 +00:00
parent afde724122
commit 40bbdf8fcc
+3 -1
View File
@@ -4,6 +4,8 @@
#include "RageUtil.h"
#include "GameManager.h"
#include "RageLog.h"
#include <string.h>
#include <errno.h>
void NotesWriterSM::WriteGlobalTags(FILE *fp, const Song &out)
{
@@ -114,7 +116,7 @@ bool NotesWriterSM::Write(CString sPath, const Song &out, bool bSavingCache)
FILE* fp = fopen( sPath, "w" );
if( fp == NULL )
{
LOG->Warn( "Error opening song file '%s' for writing.", sPath.c_str() );
LOG->Warn( "Error opening song file '%s' for writing: %s", sPath.c_str(), strerror(errno) );
return false;
}