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");
|
vpkgdir = strdup("/etc/xbps/virtualpkg.d");
|
||||||
|
|
||||||
if ((dirp = opendir(vpkgdir)) == NULL) {
|
if ((dirp = opendir(vpkgdir)) == NULL) {
|
||||||
xbps_dbg_printf(xh, "config: failed to open %s: %s\n",
|
fprintf(stderr, "ERROR: cannot access to "
|
||||||
vpkgdir, strerror(errno));
|
"etc/xbps/virtualpkg.d: %s\n", strerror(errno));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user