- made the MIDI sequencer error message much better for confused users
to be found on #WineHQ
- use strerror instead of errno at important places
- got rid of HAVE_STRERROR macro
- removed some #include:s (hopefully I didn't break anything)
diff --git a/misc/ext_debugger.c b/misc/ext_debugger.c
index 95c72ca..b18f06a 100644
--- a/misc/ext_debugger.c
+++ b/misc/ext_debugger.c
@@ -128,11 +128,11 @@
if (status == -1)
{
if (dbg_no_xterm)
- fprintf(stderr, "DEBUG_ExternalDebugger failed to execute \"%s %s %s\", errno = %d\n",
- dbg_external, dbg_wine_location, pid_string, errno);
+ fprintf(stderr, "DEBUG_ExternalDebugger failed to execute \"%s %s %s\" (%s)\n",
+ dbg_external, dbg_wine_location, pid_string, strerror(errno));
else
- fprintf(stderr, "DEBUG_ExternalDebugger failed to execute \"xterm -e %s %s %s\", errno = %d\n",
- dbg_external, dbg_wine_location, pid_string, errno);
+ fprintf(stderr, "DEBUG_ExternalDebugger failed to execute \"xterm -e %s %s %s\" (%s)\n",
+ dbg_external, dbg_wine_location, pid_string, strerror(errno));
}
}