From 71430b1566db8bf35b59aa428e478f126612b4a0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 15 Jan 2013 13:14:06 +0100 Subject: [PATCH] lib/initend.c: print to stderr a meaningfull msg on error. --- lib/initend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/initend.c b/lib/initend.c index 8ca2acdd..3ab31920 100644 --- a/lib/initend.c +++ b/lib/initend.c @@ -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; }