diff --git a/poetry/installation/executor.py b/poetry/installation/executor.py index 4580656c933..519635fda8b 100644 --- a/poetry/installation/executor.py +++ b/poetry/installation/executor.py @@ -680,7 +680,7 @@ def _download_link(self, operation: Union[Install, Update], link: Link) -> Link: ) if archive_hash not in {f["hash"] for f in package.files}: raise RuntimeError( - f"Invalid hash for {package} using archive {archive.name}" + f"Invalid hash for {package} using archive {archive.filename if isinstance(archive, Link) else archive}" ) self._hashes[package.name] = archive_hash