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>
Nguyễn Thái Ngọc Duy committed
May 8, 2016 at 16:47 UTC
9f9a522c159d5f7f399c91a22e2f73287a393a57
1 file changed
+1
-2
editor.c
+1
-2
@@ -63,7 +63,6 @@ int launch_editor(const char *path, struct strbuf *buffer, const char *const *en
63
if (!buffer)
64
return 0;
65
if (strbuf_read_file(buffer, path, 0) < 0)
66
- return error("could not read file '%s': %s",
67
- path, strerror(errno));
66
+ return error_errno("could not read file '%s'", path);
67
return 0;
68
}