From 3b04044869d912cfb2dc8e5c5b58ae5527818eb9 Mon Sep 17 00:00:00 2001 From: matthieu Date: Sat, 13 Aug 2016 09:58:37 +0000 Subject: conf_screen: report the fontname that can't be opened in case of failure. ok dcoppa@ --- conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.c b/conf.c index 317cbbb..bc992c0 100644 --- a/conf.c +++ b/conf.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. * - * $OpenBSD: conf.c,v 1.202 2015/11/17 15:19:19 okan Exp $ + * $OpenBSD: conf.c,v 1.203 2016/08/13 09:58:37 matthieu Exp $ */ #include @@ -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++) { -- cgit v1.2.3-2-gb3c3