From: Nguyễn Thái Ngọc Duy Date: Sun, 8 May 2016 09:47:43 +0000 (+0700) Subject: editor.c: use error_errno() X-Git-Tag: v2.9.0-rc0~30^2~18 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/9f9a522c159d5f7f399c91a22e2f73287a393a57 editor.c: use error_errno() Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- diff --git a/editor.c b/editor.c index 01c644cddb..7519edecdc 100644 --- a/editor.c +++ b/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; }