diff-tree -r -t: include added/removed directories in the output
[gitweb.git] / sha1_file.c
index bea958ec81ce1e1904b1b574348faae4eea4c3d0..bcfcab351dd9f8d5b4e1cc0d86ecd2162f46cf94 100644 (file)
@@ -2241,7 +2241,7 @@ static void close_sha1_file(int fd)
                fsync_or_die(fd, "sha1 file");
        fchmod(fd, 0444);
        if (close(fd) != 0)
-               die("unable to write sha1 file");
+               die("error when closing sha1 file (%s)", strerror(errno));
 }
 
 /* Size of directory component, including the ending '/' */