aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authormatthieu2016-08-13 09:58:37 +0000
committermatthieu2016-08-13 09:58:37 +0000
commit3b04044869d912cfb2dc8e5c5b58ae5527818eb9 (patch)
tree0b3468222a81d5d7fe1eda87a8a27adecc9c673d /conf.c
parentb28fd6720f782f955c8dc63381d64c6010670791 (diff)
downloadcwm-3b04044869d912cfb2dc8e5c5b58ae5527818eb9.tar.gz
conf_screen: report the fontname that can't be opened in case of failure.
ok dcoppa@
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c4
1 files 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 <sys/types.h>
@@ -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++) {