Skip to content

Commit 60901e4

Browse files
pcloudsgitster
authored andcommitted
mailmap.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 a26f4ed commit 60901e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mailmap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ static int read_mailmap_file(struct string_list *map, const char *filename,
189189
if (!f) {
190190
if (errno == ENOENT)
191191
return 0;
192-
return error("unable to open mailmap at %s: %s",
193-
filename, strerror(errno));
192+
return error_errno("unable to open mailmap at %s", filename);
194193
}
195194

196195
while (fgets(buffer, sizeof(buffer), f) != NULL)

0 commit comments

Comments
 (0)