git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] sequencer.c: unify an error message

From
Ralf Thielow <ralf.thielow@gmail.com>
Date
Oct 17, 2017, 16:20 UTC
Message-ID
<20171017162050.21525-1-ralf.thielow@gmail.com>

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
Message 1 of 1 in “sequencer.c: unify an error message”
  1. sequencer.c: unify an error messageRalf Thielow, Oct 17, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.