mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 09:44:13 +00:00
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:
parent
de8b490b01
commit
961f8eae4d
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue