read_info_alternates: warn on non-trivial errors
[git/git.git] / sha1_file.c
index a913865..d65ca43 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;
        }