Add popup messages to FatalError and ddxUseMsg, pointing user to

/tmp/XWin.log for more information.
This commit is contained in:
Harold L Hunt II 2004-03-02 04:25:58 +00:00
parent 978116d14c
commit 597e804296
2 changed files with 14 additions and 2 deletions

View file

@ -364,11 +364,19 @@ ddxUseMsg (void)
"\tDo not use Unicode clipboard even if NT-based platform.\n");
#endif
/* Log file will not be opened for UseMsg unless we open it now */
if (!g_fLogInited) {
LogInit (g_pszLogFile, NULL);
g_fLogInited = TRUE;
}
LogClose ();
/* Notify user where UseMsg text can be found.*/
MessageBox (NULL,
"The Cygwin/X help text has been printed to /tmp/XWin.log.\n"
"Please open /tmp/XWin.log to read the help text.",
"Cygwin/X - Help Text Information",
MB_OK);
}
@ -546,7 +554,7 @@ winCheckDisplayNumber ()
if (!mutex)
{
LPVOID lpMsgBuf;
/* Display a fancy error message */
FormatMessage (FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |

View file

@ -64,6 +64,10 @@ OsVendorVErrorF (const char *pszFormat, va_list va_args)
void
OsVendorFatalError (void)
{
MessageBox (NULL,
"A fatal error has occurred and Cygwin/X will now exit.\n"
"Please open /tmp/XWin.log for more information.\n",
"Cygwin/X - Fatal Error",
MB_OK);
}
#endif