mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Inform about broken manifest while loading it // Resolve #899
This commit is contained in:
@ -162,8 +162,12 @@ def singleton(cls):
|
|||||||
|
|
||||||
|
|
||||||
def load_json(file_path):
|
def load_json(file_path):
|
||||||
with open(file_path, "r") as f:
|
try:
|
||||||
return json.load(f)
|
with open(file_path, "r") as f:
|
||||||
|
return json.load(f)
|
||||||
|
except ValueError:
|
||||||
|
raise exception.PlatformioException("Could not load broken JSON: %s" %
|
||||||
|
file_path)
|
||||||
|
|
||||||
|
|
||||||
def get_systype():
|
def get_systype():
|
||||||
|
Reference in New Issue
Block a user