From: Nguyễn Thái Ngọc Duy Date: Sun, 08 May 2016 09:47:43 GMT Subject: [PATCH v3 23/41] editor.c: use error_errno() Message-ID: <1462700881-25108-24-git-send-email-pclouds@gmail.com> In-Reply-To: <1462700881-25108-1-git-send-email-pclouds@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy --- editor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/editor.c b/editor.c index 01c644c..7519ede 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; } -- 2.8.0.rc0.210.gd302cd2