better ssl_login() error message when cert is None
"certification" is hard to understand. Provide a clearer error to users.
This commit is contained in:
parent
1605afd976
commit
ee16954351
1 changed files with 1 additions and 1 deletions
|
|
@ -2563,7 +2563,7 @@ class ClientSession(object):
|
|||
cert = cert or self.opts.get('cert')
|
||||
serverca = serverca or self.opts.get('serverca')
|
||||
if cert is None:
|
||||
raise AuthError('No certification provided')
|
||||
raise AuthError('No client cert provided')
|
||||
if not os.access(cert, os.R_OK):
|
||||
raise AuthError("Certificate %s doesn't exist or is not accessible" % cert)
|
||||
if serverca and not os.access(serverca, os.R_OK):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue