From 40bbdf8fcc3a3857b7067cb2f16b4ce038f6790b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 15 Jul 2003 19:47:45 +0000 Subject: [PATCH] error reporting --- stepmania/src/NotesWriterSM.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/NotesWriterSM.cpp b/stepmania/src/NotesWriterSM.cpp index 6493afa3f3..09c89732d7 100644 --- a/stepmania/src/NotesWriterSM.cpp +++ b/stepmania/src/NotesWriterSM.cpp @@ -4,6 +4,8 @@ #include "RageUtil.h" #include "GameManager.h" #include "RageLog.h" +#include +#include 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; }