Skip to content

Commit 806cdd6

Browse files
committed
improve error message
1 parent 598edbe commit 806cdd6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

google/auth/transport/urllib3.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@
3838
except ImportError as caught_exc: # pragma: NO COVER
3939
raise ImportError(
4040
"Error: Missing 'urllib3' dependency for 'google-auth'."
41-
" The 'google-auth' library requires 'urllib3' for its default network transport."
41+
" The 'google-auth' library requires the 'urllib3' extra installed "
42+
"for its default network transport."
4243
"\n"
43-
"Please install the necessary dependency using pip:\n"
44+
"Please install the necessary dependencies using pip:\n"
4445
" pip install google-auth[urllib3]\n"
4546
"\n"
46-
"(Note: Using 'google-auth[urllib3]' ensures all dependencies are installed. We recommend running this in your virtual environment.)"
47+
"(Note: Using '[urllib3]' ensures the specific dependencies needed for this feature are installed. "
48+
"We recommend running this command in your virtual environment.)"
4749
) from caught_exc
4850

4951

0 commit comments

Comments
 (0)