From 2e59d762246181cef8a1da71847fc2b27da9e991 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 11 Aug 2008 18:52:31 +0000 Subject: [PATCH] cleanup error message --- .../src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp index ef599d1006..13fc48bd0e 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp @@ -25,7 +25,12 @@ static bool ExecuteCommand( const RString &sCommand ) int ret = system(sCommand); LOG->Trace( "done executing '%s'", sCommand.c_str() ); if( ret != 0 ) - LOG->Warn( "failed to execute '%s' with error %d.", sCommand.c_str(), ret ); + { + RString sError = ssprintf("failed to execute '%s' with error %d", sCommand.c_str(), ret); + if( ret == -1 ) + sError += ssprintf(": %s", sCommand.c_str()); + LOG->Warn( "%s", sError.c_str() ); + } return ret == 0; }