From 3149a45bfbf05a02155f17bbd10fa58ec24f5655 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 25 Feb 2011 09:48:20 -0600 Subject: Add directory name to ownership error message If you were doing a -Qo via xargs, it is at least nice to see what input caused the error message to occur rather than having a bunch of plain messages. This matches the style when we can't find the owner of a file. Signed-off-by: Dan McGee --- src/pacman/query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pacman/query.c b/src/pacman/query.c index c79133d1..18c69922 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -148,7 +148,7 @@ static int query_fileowner(alpm_list_t *targets) if(S_ISDIR(buf.st_mode)) { pm_fprintf(stderr, PM_LOG_ERROR, - _("cannot determine ownership of a directory\n")); + _("cannot determine ownership of directory '%s'\n"), filename); ret++; free(filename); continue; -- cgit v1.2.3-24-g4f1b