mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 01:48:02 +02:00
Add popup messages to FatalError and ddxUseMsg, pointing user to
/tmp/XWin.log for more information.
This commit is contained in:
parent
978116d14c
commit
597e804296
2 changed files with 14 additions and 2 deletions
|
|
@ -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 |
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue