Skip to content

Commit

Permalink
small validation error message formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
solarw committed Feb 15, 2023
1 parent 5fd694b commit 32337b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aea/configurations/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def _validate(self, instance: Dict) -> None:
@staticmethod
def _build_message_from_errors(errors: List[jsonschema.ValidationError]) -> str:
"""Build an error message from validation errors."""
path = lambda error: ".".join(list(error.path)) # noqa # type: ignore
path = lambda error: "::".join(map(str, error.path)) # noqa
result = [f"{path(error)}: {error.message}" for error in errors]
return "The following errors occurred during validation:\n - " + "\n - ".join(
result
Expand Down

0 comments on commit 32337b4

Please sign in to comment.