Print array indexes correctly in schema errors

pull/6285/head
Jimmy Brisson 2018-03-06 11:12:22 -06:00
parent b84627feab
commit 6633fbca68
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ class Config(object):
return self.format_validation_error(error.context[0], path)
else:
return "in {} element {}: {}".format(
path, str(".".join(error.absolute_path)), error.message)
path, str(".".join(str(p) for p in error.absolute_path)), error.message)
def __init__(self, tgt, top_level_dirs=None, app_config=None):
"""Construct a mbed configuration