Add details when error loading package (#5603)

This commit is contained in:
dentra 2023-10-26 23:27:42 +03:00 committed by GitHub
parent 6b8a75d3b8
commit f6e8d97981
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,7 +135,7 @@ def _process_base_package(config: dict) -> dict:
packages[file] = new_yaml packages[file] = new_yaml
except EsphomeError as e: except EsphomeError as e:
raise cv.Invalid( raise cv.Invalid(
f"{file} is not a valid YAML file. Please check the file contents." f"{file} is not a valid YAML file. Please check the file contents.\n{e}"
) from e ) from e
return packages return packages