Enhance the parsing of the platformio.ini to provide comprehensive diagnostic information

This commit is contained in:
Ivan Kravets
2023-05-31 20:15:36 +03:00
parent e0f839a372
commit 63ca19541f
2 changed files with 3 additions and 1 deletions

View File

@ -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)
~~~~~~~~~~~~~~~~~~

View File

@ -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