Skip to content

Commit 6c979c7

Browse files
pcloudsgitster
authored andcommitted
sequencer.c: use error_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fbcb0e0 commit 6c979c7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sequencer.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,8 +875,7 @@ static int sequencer_rollback(struct replay_opts *opts)
875875
return rollback_single_pick();
876876
}
877877
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());
880879
if (strbuf_getline_lf(&buf, f)) {
881880
error(_("cannot read %s: %s"), git_path_head_file(),
882881
ferror(f) ? strerror(errno) : _("unexpected end of file"));

0 commit comments

Comments
 (0)