Skip to content

Commit 02382f5

Browse files
pcloudsgitster
authored andcommitted
server-info.c: use error_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6c979c7 commit 02382f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server-info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static int update_info_file(char *path, int (*generate)(FILE *))
3636

3737
out:
3838
if (ret) {
39-
error("unable to update %s: %s", path, strerror(errno));
39+
error_errno("unable to update %s", path);
4040
if (fp)
4141
fclose(fp);
4242
else if (fd >= 0)

0 commit comments

Comments
 (0)