From 375368a94c5c5682ea516a4164c3b55792b8c56f Mon Sep 17 00:00:00 2001 From: matthieu Date: Sat, 13 Aug 2016 09:58:37 +0000 Subject: [PATCH 1/2] conf_screen: report the fontname that can't be opened in case of failure. ok dcoppa@ --- conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.c b/conf.c index 0ef1e37..2e46f15 100644 --- a/conf.c +++ b/conf.c @@ -138,7 +138,7 @@ conf_screen(struct screen_ctx *sc) if (sc->xftfont == NULL) { sc->xftfont = XftFontOpenName(X_Dpy, sc->which, Conf.font); if (sc->xftfont == NULL) - errx(1, "XftFontOpenName"); + errx(1, "XftFontOpenName %s", Conf.font); } for (i = 0; i < nitems(color_binds); i++) { From 5015c850bd3f0bc460d1b93e47c03cb8e10ba0e1 Mon Sep 17 00:00:00 2001 From: matthieu Date: Sat, 13 Aug 2016 09:59:48 +0000 Subject: [PATCH 2/2] add a column to previous commit for consitency. --- conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.c b/conf.c index 2e46f15..a8acb6b 100644 --- a/conf.c +++ b/conf.c @@ -138,7 +138,7 @@ conf_screen(struct screen_ctx *sc) if (sc->xftfont == NULL) { sc->xftfont = XftFontOpenName(X_Dpy, sc->which, Conf.font); if (sc->xftfont == NULL) - errx(1, "XftFontOpenName %s", Conf.font); + errx(1, "XftFontOpenName: %s", Conf.font); } for (i = 0; i < nitems(color_binds); i++) {