From f6e8d97981a95c5af729ed13b239360381aedf3a Mon Sep 17 00:00:00 2001 From: dentra Date: Thu, 26 Oct 2023 23:27:42 +0300 Subject: [PATCH] Add details when error loading package (#5603) --- esphome/components/packages/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/packages/__init__.py b/esphome/components/packages/__init__.py index 56a59c54d1..2b064a90cf 100644 --- a/esphome/components/packages/__init__.py +++ b/esphome/components/packages/__init__.py @@ -135,7 +135,7 @@ def _process_base_package(config: dict) -> dict: packages[file] = new_yaml except EsphomeError as e: 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 return packages