edtlib: improve inferred binding error message

Print the type which caused the error to make debugging easier.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2021-04-13 14:07:39 -07:00 committed by Carles Cufí
commit 6c5254321c

View file

@ -840,7 +840,7 @@ class Node:
pp["type"] = "phandle-array"
else:
_err(f"cannot infer binding from property: {prop} "
f"with type {prop.type}")
f"with type {prop.type!r}")
raw['properties'][name] = pp
# Set up Node state.