git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
a1f06be
)
editor.c: use error_errno()
author
Nguyễn Thái Ngọc Duy
<redacted>
Sun, 8 May 2016 09:47:43 +0000
(16:47 +0700)
committer
Junio C Hamano
<redacted>
Mon, 9 May 2016 19:29:08 +0000
(12:29 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
editor.c
patch
|
blob
|
history
diff --git
a/editor.c
b/editor.c
index 01c644cddbe8e57e31cc711aa0ca3838cf23c64d..7519edecdc297a0c0fdbbb2f3c68cb55abf2e8b2 100644
(file)
--- 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;
}
git clone https://git.99rst.org/PROJECT