* [PATCH] sequencer.c: unify an error message
@ 2017-10-17 16:20 Ralf Thielow
0 siblings, 0 replies; only message in thread
From: Ralf Thielow @ 2017-10-17 16:20 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano, Jiang Xin, Ralf Thielow
Change an error message in sequencer.c for the case that
we could not write to a file to match other instances.
Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
---
sequencer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sequencer.c b/sequencer.c
index 75f5356f6..f2a10cc4f 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -2948,7 +2948,7 @@ 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 write '%s'"), todo_file);
+ res = error_errno(_("could not write to '%s'"), todo_file);
else if (ftruncate(fd, buf.len) < 0)
res = error_errno(_("could not truncate '%s'"),
todo_file);
--
2.15.0.rc1.299.gda03b47c3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-10-17 16:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-17 16:20 [PATCH] sequencer.c: unify an error message Ralf Thielow
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).