mirror of
https://github.com/git/git.git
synced 2024-11-18 04:14:01 +01:00
editor.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
a1f06be3ff
commit
9f9a522c15
3
editor.c
3
editor.c
@ -63,7 +63,6 @@ int launch_editor(const char *path, struct strbuf *buffer, const char *const *en
|
||||
if (!buffer)
|
||||
return 0;
|
||||
if (strbuf_read_file(buffer, path, 0) < 0)
|
||||
return error("could not read file '%s': %s",
|
||||
path, strerror(errno));
|
||||
return error_errno("could not read file '%s'", path);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user