mirror of https://github.com/pypa/pip
Update error message to forward platform-specific error
This commit is contained in:
parent
9a65b887a4
commit
44857c6e82
|
@ -59,10 +59,9 @@ def _create_truststore_ssl_context() -> Optional["SSLContext"]:
|
|||
|
||||
try:
|
||||
from pip._vendor import truststore
|
||||
except ImportError:
|
||||
except ImportError as e:
|
||||
raise CommandError(
|
||||
"To use the truststore feature, 'truststore' must be installed into "
|
||||
"pip's current environment."
|
||||
f"The truststore feature is unavailable: {e}"
|
||||
)
|
||||
|
||||
return truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
|
||||
|
|
Loading…
Reference in New Issue