Skip to content

Commit 42a51ef

Browse files
theotherjimmyadbridge
authored andcommitted
Error on invalid mbed_lib JSON
1 parent 6d8cb38 commit 42a51ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/config/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,7 @@ def add_config_files(self, flist):
490490
try:
491491
cfg = json_file_to_dict(config_file)
492492
except ValueError as exc:
493-
sys.stderr.write(str(exc) + "\n")
494-
continue
493+
raise ConfigException(str(exc))
495494

496495
# Validate the format of the JSON file based on the schema_lib.json
497496
schema_root = os.path.dirname(os.path.abspath(__file__))

0 commit comments

Comments
 (0)