Skip to content

Commit 9a3acba

Browse files
pcloudsgitster
authored andcommitted
reachable.c: use error_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 60901e4 commit 9a3acba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

reachable.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ static int add_recent_loose(const unsigned char *sha1,
119119
*/
120120
if (errno == ENOENT)
121121
return 0;
122-
return error("unable to stat %s: %s",
123-
sha1_to_hex(sha1), strerror(errno));
122+
return error_errno("unable to stat %s", sha1_to_hex(sha1));
124123
}
125124

126125
add_recent_object(sha1, st.st_mtime, data);

0 commit comments

Comments
 (0)