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:
parent
6c979c74b2
commit
02382f51b3
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue