fetch-pack: eliminate spurious error messages
[gitweb.git] / attr.c
diff --git a/attr.c b/attr.c
index cab01b8b57bd4bfa41d59ca344f9e8cf462cfcc3..f12c83f80a0f03b2112c212e46c571ec4074abf3 100644 (file)
--- a/attr.c
+++ b/attr.c
@@ -354,7 +354,7 @@ static struct attr_stack *read_attr_from_file(const char *path, int macro_ok)
 
        if (!fp) {
                if (errno != ENOENT)
-                       warning(_("unable to access '%s': %s"), path, strerror(errno));
+                       warn_on_inaccessible(path);
                return NULL;
        }
        res = xcalloc(1, sizeof(*res));