Skip to content

Commit 6633fbc

Browse files
committed
Print array indexes correctly in schema errors
1 parent b84627f commit 6633fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def format_validation_error(self, error, path):
392392
return self.format_validation_error(error.context[0], path)
393393
else:
394394
return "in {} element {}: {}".format(
395-
path, str(".".join(error.absolute_path)), error.message)
395+
path, str(".".join(str(p) for p in error.absolute_path)), error.message)
396396

397397
def __init__(self, tgt, top_level_dirs=None, app_config=None):
398398
"""Construct a mbed configuration

0 commit comments

Comments
 (0)