read_info_alternates: warn on non-trivial errors
[gitweb.git] / sha1_file.c
index a913865df8e448ad42f4acc9a03158cba08d9add..d65ca432459e7be287ec6ed85125a9afa6b74de1 100644 (file)
@@ -456,6 +456,7 @@ static void read_info_alternates(const char * relative_base, int depth)
 
        path = xstrfmt("%s/info/alternates", relative_base);
        if (strbuf_read_file(&buf, path, 1024) < 0) {
+               warn_on_fopen_errors(path);
                free(path);
                return;
        }