sequencer.c: unify an error message
authorRalf Thielow <ralf.thielow@gmail.com>
Tue, 17 Oct 2017 16:20:50 +0000 (18:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Oct 2017 21:08:29 +0000 (06:08 +0900)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c
index 961a222506cbaa5f0e452666dbe5ee9f87025505..04c9512f57cd9a67aabafbc878b7e856c28f1366 100644 (file)
@@ -2926,7 +2926,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);