reachable.c: use error_errno()

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed May 8, 2016 at 16:47 UTC 9a3acba1caead126a9c009eb00573fc9451f8cf2
1 file changed +1 -2
reachable.c
+1 -2
@@ -119,8 +119,7 @@ static int add_recent_loose(const unsigned char *sha1,
119 */
120 if (errno == ENOENT)
121 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));
123 }
124
125 add_recent_object(sha1, st.st_mtime, data);