Commit 857705e8 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

RAPI client: Improve SSL error reporting


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 1068639f
......@@ -403,7 +403,7 @@ class GanetiRapiClient(object):
resp = self._http.open(req)
encoded_response_content = resp.read()
except (OpenSSL.SSL.Error, OpenSSL.crypto.Error), err:
raise CertificateError("SSL issue: %s" % err)
raise CertificateError("SSL issue: %r" % err)
if encoded_response_content:
response_content = simplejson.loads(encoded_response_content)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment