m1n1.adt: Print a useful diag when a prop fails to parse

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-09-16 16:48:22 +09:00
parent de8b490b01
commit 961f8eae4d

View file

@ -191,7 +191,11 @@ def parse_prop(node, path, node_name, name, v, is_template=False):
t = ADT2Tuple
if t is not None:
v = Sequence(t, Terminated).parse(v)[0]
try:
v = Sequence(t, Terminated).parse(v)[0]
except:
print("Failed to parse:", path, name, v.hex())
raise
return t, v