Skip to content

Commit d1114d8

Browse files
committed
Merge branch 'js/rebase-i-final'
Error message fix. * js/rebase-i-final: sequencer.c: fix and unify error messages in rearrange_squash()
2 parents 4339c9f + 3247edb commit d1114d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sequencer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2948,9 +2948,9 @@ int rearrange_squash(void)
29482948
if (fd < 0)
29492949
res = error_errno(_("could not open '%s'"), todo_file);
29502950
else if (write(fd, buf.buf, buf.len) < 0)
2951-
res = error_errno(_("could not read '%s'."), todo_file);
2951+
res = error_errno(_("could not write '%s'"), todo_file);
29522952
else if (ftruncate(fd, buf.len) < 0)
2953-
res = error_errno(_("could not finish '%s'"),
2953+
res = error_errno(_("could not truncate '%s'"),
29542954
todo_file);
29552955
close(fd);
29562956
strbuf_release(&buf);

0 commit comments

Comments
 (0)