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>maint
parent
6e59e9c0a6
commit
896ba1d112
|
@ -583,8 +583,7 @@ static int edit_branch_description(const char *branch_name)
|
||||||
branch_name, comment_line_char);
|
branch_name, comment_line_char);
|
||||||
if (write_file_gently(git_path(edit_description), "%s", buf.buf)) {
|
if (write_file_gently(git_path(edit_description), "%s", buf.buf)) {
|
||||||
strbuf_release(&buf);
|
strbuf_release(&buf);
|
||||||
return error(_("could not write branch description template: %s"),
|
return error_errno(_("could not write branch description template"));
|
||||||
strerror(errno));
|
|
||||||
}
|
}
|
||||||
strbuf_reset(&buf);
|
strbuf_reset(&buf);
|
||||||
if (launch_editor(git_path(edit_description), &buf, NULL)) {
|
if (launch_editor(git_path(edit_description), &buf, NULL)) {
|
||||||
|
|
Loading…
Reference in New Issue