mirror of
https://github.com/pyenv/pyenv.git
synced 2026-06-06 00:48:13 +09:00
clarify confusing error message
This commit is contained in:
parent
5bb6b27d61
commit
3399b2e2e5
@ -369,8 +369,8 @@ class CPythonAvailableVersionsDirectory(KeyedList[_CPythonAvailableVersionInfo,
|
||||
download_version = packaging.version.Version(m.group("version"))
|
||||
if download_version != version:
|
||||
if not refine_mode:
|
||||
raise ValueError(f"Unexpectedly found a download {name} for {download_version} "
|
||||
f"at page {entry.download_page_url} for {version}")
|
||||
raise ValueError(f"Unexpectedly found a download {name} ({download_version}) "
|
||||
f"for {version} at page {entry.download_page_url}")
|
||||
entry_to_fill = additional_versions_found.get_or_create(
|
||||
download_version,
|
||||
download_page_url=entry.download_page_url
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user