Skip to content

Commit 44857c6

Browse files
committed
Update error message to forward platform-specific error
1 parent 9a65b88 commit 44857c6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/pip/_internal/cli/req_command.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ def _create_truststore_ssl_context() -> Optional["SSLContext"]:
5959

6060
try:
6161
from pip._vendor import truststore
62-
except ImportError:
62+
except ImportError as e:
6363
raise CommandError(
64-
"To use the truststore feature, 'truststore' must be installed into "
65-
"pip's current environment."
64+
f"The truststore feature is unavailable: {e}"
6665
)
6766

6867
return truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)

0 commit comments

Comments
 (0)