diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2016-05-08 16:47:50 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-09 12:29:08 -0700 |
commit | 60901e4c220e565518c87b1349108ac7dfec0ba0 (patch) | |
tree | 427c7576545dd560cc0e75e069caeb2c24bed22a | |
parent | ident.c: use warning_errno() (diff) | |
download | tgif-60901e4c220e565518c87b1349108ac7dfec0ba0.tar.xz |
mailmap.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>
-rw-r--r-- | mailmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -189,8 +189,7 @@ static int read_mailmap_file(struct string_list *map, const char *filename, if (!f) { if (errno == ENOENT) return 0; - return error("unable to open mailmap at %s: %s", - filename, strerror(errno)); + return error_errno("unable to open mailmap at %s", filename); } while (fgets(buffer, sizeof(buffer), f) != NULL) |