summaryrefslogtreecommitdiff
path: root/t/t3404-rebase-interactive.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2020-01-23 12:28:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-01-23 20:48:05 (GMT)
commitd859dcad945755ad7d3ada843eecf2843b3c5470 (patch)
treeb594172815712f22649280207d6ffe97fa813c43 /t/t3404-rebase-interactive.sh
parentd0654dc308b0ba76dd8ed7bbb33c8d8f7aacd783 (diff)
downloadgit-d859dcad945755ad7d3ada843eecf2843b3c5470.zip
git-d859dcad945755ad7d3ada843eecf2843b3c5470.tar.gz
git-d859dcad945755ad7d3ada843eecf2843b3c5470.tar.bz2
parse_insn_line(): improve error message when parsing failed
In the case that a `get_oid()` call failed, we showed some rather bogus part of the line instead of the precise string we sent to said function. That makes it rather hard for users to understand what is going wrong, so let's fix that. While at it, return a negative value from `parse_insn_line()` in case of an error, as per our convention. This function's only caller, `todo_list_parse_insn_buffer()`, cares only whether that return value is non-zero or not, i.e. does not need to be changed. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3404-rebase-interactive.sh')
0 files changed, 0 insertions, 0 deletions