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>
maint
Nguyễn Thái Ngọc Duy 2016-05-08 16:47:55 +07:00 committed by Junio C Hamano
parent 6c979c74b2
commit 02382f51b3
1 changed files with 1 additions and 1 deletions

View File

@ -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)