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:
Ken Dreyer 2021-02-23 16:03:46 -07:00 committed by Tomas Kopecek
parent 1605afd976
commit ee16954351

View file

@ -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):