# HG changeset patch # User Karl Heuer # Date 801955135 0 # Node ID d23f2c9990b2bc6641bbea82c40a82f356b6e012 # Parent ad681fd69905087fe7691a6d9bea6d442db6a641 (x_display_info_for_name): Fix error message. (Fx_open_connection): Fix error messages. diff -r ad681fd69905 -r d23f2c9990b2 src/xfns.c --- a/src/xfns.c Wed May 31 21:06:48 1995 +0000 +++ b/src/xfns.c Wed May 31 21:18:55 1995 +0000 @@ -4591,7 +4591,7 @@ (char *) XSTRING (Vx_resource_name)->data); if (dpyinfo == 0) - error ("X server %s not responding", XSTRING (name)->data); + error ("Cannot connect to X server %s", XSTRING (name)->data); x_in_use = 1; XSETFASTINT (Vwindow_system_version, 11); @@ -4634,11 +4634,13 @@ if (dpyinfo == 0) { if (!NILP (must_succeed)) - fatal ("X server %s not responding.\n\ -Check the DISPLAY environment variable or use \"-d\"\n", + fatal ("Cannot connect to X server %s.\n\ +Check the DISPLAY environment variable or use `-d'.\n\ +Also use the `xhost' program to verify that it is set to permit\n\ +connections from your machine.\n", XSTRING (display)->data); else - error ("X server %s not responding", XSTRING (display)->data); + error ("Cannot connect to X server %s", XSTRING (display)->data); } x_in_use = 1;