summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-02-25 09:48:20 -0600
committerDan McGee <dan@archlinux.org>2011-02-25 09:48:20 -0600
commit3149a45bfbf05a02155f17bbd10fa58ec24f5655 (patch)
treecf9b71b9cdef50a6adb3b6787290581ecacc75fb
parent1fcc49675640acc14ee50549d0143c5b8164bdf8 (diff)
downloadpacman-3149a45bfbf05a02155f17bbd10fa58ec24f5655.tar.xz
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 <dan@archlinux.org>
-rw-r--r--src/pacman/query.c2
1 files changed, 1 insertions, 1 deletions
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;