scripts: dts: improve error message on compatible type error
Print the offending value and its type. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
6e8132d1ae
commit
59e2f230e0
@ -310,8 +310,10 @@ class EDT:
|
||||
|
||||
compatible = binding["compatible"]
|
||||
if not isinstance(compatible, str):
|
||||
_err("malformed 'compatible:' field in {} - should be a string"
|
||||
.format(binding_path))
|
||||
_err("malformed 'compatible: {}' field in {} - "
|
||||
"should be a string, not {}"
|
||||
.format(compatible, binding_path,
|
||||
type(compatible).__name__))
|
||||
|
||||
return compatible
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user