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>maint
parent
fbcb0e0659
commit
6c979c74b2
|
@ -875,8 +875,7 @@ static int sequencer_rollback(struct replay_opts *opts)
|
||||||
return rollback_single_pick();
|
return rollback_single_pick();
|
||||||
}
|
}
|
||||||
if (!f)
|
if (!f)
|
||||||
return error(_("cannot open %s: %s"), git_path_head_file(),
|
return error_errno(_("cannot open %s"), git_path_head_file());
|
||||||
strerror(errno));
|
|
||||||
if (strbuf_getline_lf(&buf, f)) {
|
if (strbuf_getline_lf(&buf, f)) {
|
||||||
error(_("cannot read %s: %s"), git_path_head_file(),
|
error(_("cannot read %s: %s"), git_path_head_file(),
|
||||||
ferror(f) ? strerror(errno) : _("unexpected end of file"));
|
ferror(f) ? strerror(errno) : _("unexpected end of file"));
|
||||||
|
|
Loading…
Reference in New Issue