Skip to content

Commit

Permalink
sequencer.c: use error_errno()
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
pclouds authored and gitster committed May 9, 2016
1 parent fbcb0e0 commit 6c979c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sequencer.c
Expand Up @@ -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"));
Expand Down

0 comments on commit 6c979c7

Please sign in to comment.