threads / patch / 46987

patchsequencer.c: unify an error message

Subject: [PATCH] sequencer.c: unify an error message

## tl;dr

One message between Oct 17, 2017 and Oct 17, 2017. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Ralf Thielow· Oct 17, 2017, 16:20 UTC · lore

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(-)
Show changes to sequencer.c +1 −1
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

← back to recent threads