summaryrefslogtreecommitdiffstats
path: root/thumbs.c
diff options
context:
space:
mode:
Diffstat (limited to 'thumbs.c')
-rw-r--r--thumbs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/thumbs.c b/thumbs.c
index f10a1aa..c4cc130 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -92,7 +92,8 @@ void tns_cache_write(Imlib_Image im, const char *filepath, bool force)
{
if ((dirend = strrchr(cfile, '/')) != NULL) {
*dirend = '\0';
- err = r_mkdir(cfile);
+ if ((err = r_mkdir(cfile)) == -1)
+ error(0, errno, "%s", cfile);
*dirend = '/';
}
if (err == 0) {