[GSoC][PATCH 1/1] sequencer: print an error message if append_todo_help() fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This adds an error when append_todo_help() fails to write its message to
the todo file.

Signed-off-by: Alban Gruin <alban.gruin@xxxxxxxxx>
---
 sequencer.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sequencer.c b/sequencer.c
index 7cc76332e..7c4bdbb99 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -4380,6 +4380,9 @@ int append_todo_help(unsigned edit_todo, unsigned keep_empty)
 	}
 
 	ret = fputs(buf.buf, todo);
+	if (ret)
+		error_errno(_("Could not append help text to '%s'"), rebase_path_todo());
+
 	fclose(todo);
 	strbuf_release(&buf);
 
-- 
2.18.0




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux