xbps-bin: error msg when cachedir cannot be created.

This commit is contained in:
Juan RP 2011-06-04 16:37:05 +02:00
parent b2840a3f16
commit 48f689d8e6

View File

@ -145,6 +145,8 @@ again:
continue; continue;
} }
if (xbps_mkpath(xhp->cachedir, 0755) == -1) { if (xbps_mkpath(xhp->cachedir, 0755) == -1) {
xbps_error_printf("xbps-bin: cannot mkdir cachedir "
"`%s': %s.\n", xhp->cachedir, strerror(errno));
free(binfile); free(binfile);
return errno; return errno;
} }