lib/initend.c: print to stderr a meaningfull msg on error.
This commit is contained in:
parent
b5bb1debe4
commit
71430b1566
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user