diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2016-05-08 16:47:25 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-09 12:29:08 -0700 |
commit | 896ba1d11269e6e1cbf5c2795f908da5e3e1ce29 (patch) | |
tree | b4f27cc3588f4c15d5af75b178500ab72130fa80 /builtin | |
parent | 6e59e9c0a658c619d390ed93466e457d4b80f0fe (diff) | |
download | git-896ba1d11269e6e1cbf5c2795f908da5e3e1ce29.tar.gz |
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>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/branch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/branch.c b/builtin/branch.c index 7b45b6bd6b..6045dca471 100644 --- a/builtin/branch.c +++ b/builtin/branch.c @@ -583,8 +583,7 @@ static int edit_branch_description(const char *branch_name) branch_name, comment_line_char); if (write_file_gently(git_path(edit_description), "%s", buf.buf)) { strbuf_release(&buf); - return error(_("could not write branch description template: %s"), - strerror(errno)); + return error_errno(_("could not write branch description template")); } strbuf_reset(&buf); if (launch_editor(git_path(edit_description), &buf, NULL)) { |