1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-10-28 04:49:43 +01:00

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

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)