server-info.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>
This commit is contained in:
parent
6c979c74b2
commit
02382f51b3
@ -36,7 +36,7 @@ static int update_info_file(char *path, int (*generate)(FILE *))
|
||||
|
||||
out:
|
||||
if (ret) {
|
||||
error("unable to update %s: %s", path, strerror(errno));
|
||||
error_errno("unable to update %s", path);
|
||||
if (fp)
|
||||
fclose(fp);
|
||||
else if (fd >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user