Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'js/rebase-i-final'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 17 Oct 2017 04:29:19 +0000
(13:29 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 17 Oct 2017 04:29:19 +0000
(13:29 +0900)
Error message fix.
* js/rebase-i-final:
sequencer.c: fix and unify error messages in rearrange_squash()
sequencer.c
patch
|
blob
|
history
raw
(from parent 1:
4339c9f
)
diff --git
a/sequencer.c
b/sequencer.c
index e258bb6469a77123b191f85ba679e446ef9c73b6..75f5356f69bc4b6151fddfae95eac0ce23b154b6 100644
(file)
--- a/
sequencer.c
+++ b/
sequencer.c
@@
-2948,9
+2948,9
@@
int rearrange_squash(void)
if (fd < 0)
res = error_errno(_("could not open '%s'"), todo_file);
else if (write(fd, buf.buf, buf.len) < 0)
- res = error_errno(_("could not
read '%s'.
"), todo_file);
+ res = error_errno(_("could not
write '%s'
"), todo_file);
else if (ftruncate(fd, buf.len) < 0)
- res = error_errno(_("could not
finish
'%s'"),
+ res = error_errno(_("could not
truncate
'%s'"),
todo_file);
close(fd);
strbuf_release(&buf);