aboutsummaryrefslogtreecommitdiff
path: root/sequencer.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-05-08 16:47:54 +0700
committerJunio C Hamano <gitster@pobox.com>2016-05-09 12:29:08 -0700
commit6c979c74b26d48b82f5e144faf5aeccc2e875a8a (patch)
tree06c01c16b6ea1ad118af862c40812081398ff3a7 /sequencer.c
parentfbcb0e0659618793815a57c5f60ad391ad6f452e (diff)
downloadgit-6c979c74b26d48b82f5e144faf5aeccc2e875a8a.tar.gz
git-6c979c74b26d48b82f5e144faf5aeccc2e875a8a.tar.xz
sequencer.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 'sequencer.c')
-rw-r--r--sequencer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sequencer.c b/sequencer.c
index e66f2fe0f..4687ad4b8 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -875,8 +875,7 @@ static int sequencer_rollback(struct replay_opts *opts)
return rollback_single_pick();
}
if (!f)
- return error(_("cannot open %s: %s"), git_path_head_file(),
- strerror(errno));
+ return error_errno(_("cannot open %s"), git_path_head_file());
if (strbuf_getline_lf(&buf, f)) {
error(_("cannot read %s: %s"), git_path_head_file(),
ferror(f) ? strerror(errno) : _("unexpected end of file"));