lib/initend.c: print to stderr a meaningfull msg on error.

This commit is contained in:
Juan RP 2013-01-15 13:14:06 +01:00
parent b5bb1debe4
commit 71430b1566

View File

@ -90,8 +90,8 @@ config_inject_vpkgs(struct xbps_handle *xh)
vpkgdir = strdup("/etc/xbps/virtualpkg.d");
if ((dirp = opendir(vpkgdir)) == NULL) {
xbps_dbg_printf(xh, "config: failed to open %s: %s\n",
vpkgdir, strerror(errno));
fprintf(stderr, "ERROR: cannot access to "
"etc/xbps/virtualpkg.d: %s\n", strerror(errno));
return;
}