Commit 9a3acba1 authored by Duy Nguyen's avatar Duy Nguyen Committed by Junio C Hamano

reachable.c: use error_errno()

Signed-off-by: Duy Nguyen's avatarNguyễn Thái Ngọc Duy <>
Signed-off-by: default avatarJunio C Hamano <>
parent 60901e4c
......@@ -119,8 +119,7 @@ static int add_recent_loose(const unsigned char *sha1,
if (errno == ENOENT)
return 0;
return error("unable to stat %s: %s",
sha1_to_hex(sha1), strerror(errno));
return error_errno("unable to stat %s", sha1_to_hex(sha1));
add_recent_object(sha1, st.st_mtime, data);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment