From 63ca19541f0a61955373f9807d3febd56cf4a69d Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 31 May 2023 20:15:36 +0300 Subject: [PATCH] Enhance the parsing of the platformio.ini to provide comprehensive diagnostic information --- HISTORY.rst | 2 ++ platformio/project/config.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index e92896b9..a29f23d1 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -18,6 +18,8 @@ PlatformIO Core 6 6.1.8 (2023-??-??) ~~~~~~~~~~~~~~~~~~ +* Enhanced the parsing of the |PIOCONF| to provide comprehensive diagnostic information + 6.1.7 (2023-05-08) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/project/config.py b/platformio/project/config.py index c2b072ef..08ab422c 100644 --- a/platformio/project/config.py +++ b/platformio/project/config.py @@ -98,7 +98,7 @@ class ProjectConfigBase: try: self._parser.read(path, "utf-8") except configparser.Error as exc: - raise exception.InvalidProjectConfError(path, str(exc)) + raise exception.InvalidProjectConfError(path, str(exc)) from exc if not parse_extra: return