1
0
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:
Nguyễn Thái Ngọc Duy 2016-05-08 16:47:43 +07:00 committed by Junio C Hamano
parent a1f06be3ff
commit 9f9a522c15

@ -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;
}