Skip to content
Snippets Groups Projects
Commit e3c7e391 authored by Adam Felizzi's avatar Adam Felizzi
Browse files

hardware_gen: Use logging.warning for import error

Updated YAML validation error message to use logging.warning,
forwarding the output to stderr. This would otherwise end up
in the CMake dts compatibility string.
parent 2fbdf188
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ from jinja2 import Environment, BaseLoader
try:
from jsonschema import validate
except ImportError:
print("Skipping hardware YAML validation, `pip install jsonschema` to validate")
logging.warning("Skipping hardware YAML validation, `pip install jsonschema` to validate")
def validate(*args, **kwargs):
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment