Skip to content

Commit

Permalink
Fixes error messages that point to list items (#1408)
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyfuture authored and sdispater committed Oct 11, 2019
1 parent 04221f8 commit 6a99ef2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion poetry/json/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def validate_object(obj, schema_name): # type: (dict, str) -> List[str]
for error in validation_errors:
message = error.message
if error.path:
message = "[{}] {}".format(".".join(error.path), message)
message = "[{}] {}".format(
".".join(str(x) for x in error.absolute_path), message
)

errors.append(message)

Expand Down

0 comments on commit 6a99ef2

Please sign in to comment.