sequencer: improve error message when an OID could not be parsed

The interactive rebase simply complains about an "invalid line" when the object hash of, say, a `pick` line could not be parsed. Let's tell the user what happened in a little more detail. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Mar 13, 2019 at 03:16 UTC 8b637cdab0cb07dbd45d0f0155685455f46981ea
1 file changed +2 -1
sequencer.c
+2 -1
@@ -2137,7 +2137,8 @@ static int parse_insn_line(struct repository *r, struct todo_item *item,
2137 item->arg_len = (int)(eol - item->arg);
2138
2139 if (status < 0)
2140 - return -1;
2140 + return error(_("could not parse '%.*s'"),
2141 + (int)(end_of_object_name - bol), bol);
2142
2143 item->commit = lookup_commit_reference(r, &commit_oid);
2144 return !item->commit;