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>
Nguyễn Thái Ngọc Duy committed
May 8, 2016 at 16:47 UTC
6c979c74b26d48b82f5e144faf5aeccc2e875a8a
1 file changed
+1
-2
sequencer.c
+1
-2
@@ -875,8 +875,7 @@ static int sequencer_rollback(struct replay_opts *opts)
875
return rollback_single_pick();
876
}
877
if (!f)
878
- return error(_("cannot open %s: %s"), git_path_head_file(),
879
- strerror(errno));
878
+ return error_errno(_("cannot open %s"), git_path_head_file());
879
if (strbuf_getline_lf(&buf, f)) {
880
error(_("cannot read %s: %s"), git_path_head_file(),
881
ferror(f) ? strerror(errno) : _("unexpected end of file"));