builtin/branch.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
896ba1d11269e6e1cbf5c2795f908da5e3e1ce29
1 file changed
+1
-2
builtin/branch.c
+1
-2
@@ -583,8 +583,7 @@ static int edit_branch_description(const char *branch_name)
583
branch_name, comment_line_char);
584
if (write_file_gently(git_path(edit_description), "%s", buf.buf)) {
585
strbuf_release(&buf);
586
- return error(_("could not write branch description template: %s"),
587
- strerror(errno));
586
+ return error_errno(_("could not write branch description template"));
587
}
588
strbuf_reset(&buf);
589
if (launch_editor(git_path(edit_description), &buf, NULL)) {