From: Alban Gruin Date: Fri, 09 Nov 2018 08:08:04 GMT Subject: [PATCH v3 15/16] sequencer: fix a call to error() in transform_todo_file() Message-ID: <20181109080805.6350-16-alban.gruin@gmail.com> In-Reply-To: <20181109080805.6350-1-alban.gruin@gmail.com> This replaces a call to error() by a call to error_errno() after writing the content of the todo list to the disk in transform_todo_file(). Signed-off-by: Alban Gruin --- No changes since v2. sequencer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sequencer.c b/sequencer.c index 02afd2f5cd..a55df3526f 100644 --- a/sequencer.c +++ b/sequencer.c @@ -4464,7 +4464,7 @@ int sequencer_add_exec_commands(struct string_list *commands) int res; if (strbuf_read_file(&todo_list.buf, todo_file, 0) < 0) - return error(_("could not read '%s'."), todo_file); + return error_errno(_("could not read '%s'."), todo_file); if (todo_list_parse_insn_buffer(todo_list.buf.buf, &todo_list)) { todo_list_release(&todo_list); -- 2.19.1.872.ga867da739e