bisect-kit: add assertion message when analyzing commit history failed
BUG=None
TEST=None
Change-Id: If32bc84f4575ec983201c88705041ae9d20f10f3
Reviewed-on: https://chromium-review.googlesource.com/1765268
Tested-by: Kuang-che Wu <kcwu@chromium.org>
Commit-Ready: Chi-Ngai Wan <cnwan@google.com>
Commit-Ready: Kuang-che Wu <kcwu@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Chi-Ngai Wan <cnwan@google.com>
diff --git a/bisect_kit/codechange.py b/bisect_kit/codechange.py
index 80dbc0d..b70f0a2 100644
--- a/bisect_kit/codechange.py
+++ b/bisect_kit/codechange.py
@@ -809,7 +809,7 @@
if matched_index is None:
if i in (0, len(fixed_specs) - 1):
logger.error('essential spec mismatch, unable to continue')
- assert 0
+ assert 0, 'Bisector cannot deal with this version range.'
else:
logger.warning('%s do not match, skip', fixed_spec.name)
continue