Skip to content

Commit cabf304

Browse files
committed
update error message to include missing package
1 parent 806cdd6 commit cabf304

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

google/auth/transport/urllib3.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@
3737
from packaging import version # type: ignore
3838
except ImportError as caught_exc: # pragma: NO COVER
3939
raise ImportError(
40-
"Error: Missing 'urllib3' dependency for 'google-auth'."
41-
" The 'google-auth' library requires the 'urllib3' extra installed "
42-
"for its default network transport."
40+
""
41+
f"Error: {caught_exc}."
42+
" The 'google-auth' library requires the extras installed "
43+
"for urllib3 network transport."
4344
"\n"
4445
"Please install the necessary dependencies using pip:\n"
4546
" pip install google-auth[urllib3]\n"

0 commit comments

Comments
 (0)