]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sha1_file.c
Convert existing die(..., strerror(errno)) to die_errno()
[thirdparty/git.git] / sha1_file.c
index e73cd4fc0ba2daac14f604f1973d1b0658212b26..1964a6d39b87fe0153bf40d8d72a19cb0aea7fe7 100644 (file)
@@ -2287,7 +2287,7 @@ static void close_sha1_file(int fd)
        if (fsync_object_files)
                fsync_or_die(fd, "sha1 file");
        if (close(fd) != 0)
-               die("error when closing sha1 file (%s)", strerror(errno));
+               die_errno("error when closing sha1 file");
 }
 
 /* Size of directory component, including the ending '/' */