Skip to content

Commit 9f9a522

Browse files
pcloudsgitster
authored andcommitted
editor.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 a1f06be commit 9f9a522

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

editor.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ int launch_editor(const char *path, struct strbuf *buffer, const char *const *en
6363
if (!buffer)
6464
return 0;
6565
if (strbuf_read_file(buffer, path, 0) < 0)
66-
return error("could not read file '%s': %s",
67-
path, strerror(errno));
66+
return error_errno("could not read file '%s'", path);
6867
return 0;
6968
}

0 commit comments

Comments
 (0)