print bufpool error if available

This commit is contained in:
sewn 2024-10-21 20:07:06 +03:00
parent e06823dc40
commit 793f34f194
No known key found for this signature in database

2
mew.c
View file

@ -284,7 +284,7 @@ drawmenu(void)
errno = 0;
if (!(buf = bufpool_getbuf(&pool, shm, mw, mh)))
die("failed to find available buffer");
die(errno ? "bufpool_getbuf:" : "no buffer available");
drwl_setimage(drw, buf->image);
drwl_setscheme(drw, colors[SchemeNorm]);