From 6f85088b2b561f37968e3ffacfcb61d96b0cbdd7 Mon Sep 17 00:00:00 2001 From: lisa neigut Date: Fri, 20 Sep 2019 12:51:19 -0500 Subject: [PATCH] tools: add handy debug error --- tools/generate-wire.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/generate-wire.py b/tools/generate-wire.py index 6883d014f..882350c03 100755 --- a/tools/generate-wire.py +++ b/tools/generate-wire.py @@ -601,6 +601,8 @@ def main(options, args=None, output=sys.stdout, lines=None): if collapse: count = 1 + elif len(tokens) < 5: + raise ValueError('problem with parsing {}:{}'.format(ln, line)) else: count = tokens[4]