From 718bbd3ada6834b8668e5cd48c6ff91bccfae1bb Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 14 Feb 2006 05:54:40 +0000 Subject: [PATCH] better error message --- stepmania/src/archutils/Win32/CrashHandlerChild.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/archutils/Win32/CrashHandlerChild.cpp b/stepmania/src/archutils/Win32/CrashHandlerChild.cpp index bdebc1cb11..69617ca8f8 100644 --- a/stepmania/src/archutils/Win32/CrashHandlerChild.cpp +++ b/stepmania/src/archutils/Win32/CrashHandlerChild.cpp @@ -109,7 +109,7 @@ namespace VDDebugInfo HANDLE h = CreateFile( pctx->sFilename, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL ); if( h == INVALID_HANDLE_VALUE ) { - pctx->sError = "CreateFile failed"; + pctx->sError = werr_ssprintf( GetLastError(), "CreateFile failed" ); return false; }