From 6a99ef21ddb89afef91b716e5f973210816fdbd6 Mon Sep 17 00:00:00 2001 From: Frank Sachsenheim Date: Fri, 11 Oct 2019 11:56:36 +0200 Subject: [PATCH] Fixes error messages that point to list items (#1408) --- poetry/json/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/poetry/json/__init__.py b/poetry/json/__init__.py index 24452baca66..c4fdc91fb19 100644 --- a/poetry/json/__init__.py +++ b/poetry/json/__init__.py @@ -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)