Merge branch 'tr/die_errno'
* tr/die_errno: Use die_errno() instead of die() when checking syscalls Convert existing die(..., strerror(errno)) to die_errno() die_errno(): double % in strerror() output just in case Introduce die_errno() that appends strerror(errno) to die()
This commit is contained in:
@ -2286,7 +2286,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 '/' */
|
||||
|
||||
Reference in New Issue
Block a user