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>maint
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)
|
if (!buffer)
|
||||||
return 0;
|
return 0;
|
||||||
if (strbuf_read_file(buffer, path, 0) < 0)
|
if (strbuf_read_file(buffer, path, 0) < 0)
|
||||||
return error("could not read file '%s': %s",
|
return error_errno("could not read file '%s'", path);
|
||||||
path, strerror(errno));
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue