From 32a5cd501ef792eaeafeb6f4dc9a9cb496ccc3c8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 6 Jun 2011 09:09:30 +0200 Subject: [PATCH] xbps-bin: improve error printfs while checking files.plist. --- bin/xbps-bin/check.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/xbps-bin/check.c b/bin/xbps-bin/check.c index debb5c2f..57dd1ead 100644 --- a/bin/xbps-bin/check.c +++ b/bin/xbps-bin/check.c @@ -212,7 +212,7 @@ xbps_check_pkg_integrity(const char *pkgname) break; default: fprintf(stderr, - "%s: unexpected error for %s (%s)\n", + "%s: can't check `%s' (%s)\n", pkgname, file, strerror(rv)); break; } @@ -252,8 +252,8 @@ xbps_check_pkg_integrity(const char *pkgname) broken = true; } else fprintf(stderr, - "%s: unexpected error for " - "%s (%s)\n", pkgname, file, + "%s: can't check `%s' (%s)\n", + pkgname, file, strerror(errno)); } free(path);