mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Capture manifest parser exceptions
This commit is contained in:
@ -127,7 +127,10 @@ class BaseManifestParser(object):
|
||||
def __init__(self, contents, remote_url=None, package_dir=None):
|
||||
self.remote_url = remote_url
|
||||
self.package_dir = package_dir
|
||||
self._data = self.parse(contents)
|
||||
try:
|
||||
self._data = self.parse(contents)
|
||||
except Exception as e:
|
||||
raise ManifestParserException("Could not parse manifest -> %s" % e)
|
||||
self._data = self.parse_examples(self._data)
|
||||
|
||||
def parse(self, contents):
|
||||
|
Reference in New Issue
Block a user