Skip to content

Commit 89301b1

Browse files
Merge pull request #6552 from theotherjimmy/error-invalid-lib
Error on invalid mbed_lib JSON
2 parents 83100d2 + f34fedd commit 89301b1

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)