summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-02-13 12:09:48 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-02-13 12:09:48 +0000
commitb1112719dae55a13a9cc24d8a4705101f6aa8595 (patch)
tree46b991ee339b8c649a3dd0fb7107b5d08a691451 /app
parentfbbda4402c2390f431a7d08478fba5671022fcbf (diff)
Make cwm print the XDisplayName() if it fails to open the display,
instead of an error message that'll be gibberish to most people. from Gleydson Soares. Thanks! ok simon@.
Diffstat (limited to 'app')
-rw-r--r--app/cwm/calmwm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/cwm/calmwm.c b/app/cwm/calmwm.c
index b81d65035..1633c30ef 100644
--- a/app/cwm/calmwm.c
+++ b/app/cwm/calmwm.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: calmwm.c,v 1.7 2008/01/16 11:39:20 oga Exp $
+ * $Id: calmwm.c,v 1.8 2008/02/13 12:09:47 oga Exp $
*/
#include "headers.h"
@@ -124,7 +124,8 @@ x_setup(char *display_name)
TAILQ_INIT(&Screenq);
if ((X_Dpy = XOpenDisplay(display_name)) == NULL)
- errx(1, "%s:%d XOpenDisplay()", __FILE__, __LINE__);
+ errx(1, "unable to open display \"%s\"",
+ XDisplayName(display_name));
XSetErrorHandler(x_errorhandler);