aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-11-09 07:24:40 +0900
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-11-09 07:24:40 +0900
commit747ef464bf87a70a12ce2236c5408a7a0440cc44 (patch)
tree0c8e20a1679f4ec7163a9c84b004893a11eb4aea
parentb91a2448c668f42f7d18489dcd71ab02de7112ca (diff)
parent705ff5ec7be8d76b1f81d6f517ccb3af4c545ea6 (diff)
downloadcryptography-747ef464bf87a70a12ce2236c5408a7a0440cc44.tar.gz
cryptography-747ef464bf87a70a12ce2236c5408a7a0440cc44.tar.bz2
cryptography-747ef464bf87a70a12ce2236c5408a7a0440cc44.zip
Merge pull request #2472 from alex/more-detail
Include the full OpenSSL error in the exception message
-rw-r--r--src/cryptography/hazmat/bindings/openssl/binding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/bindings/openssl/binding.py b/src/cryptography/hazmat/bindings/openssl/binding.py
index a750cd6b..07b6b9ac 100644
--- a/src/cryptography/hazmat/bindings/openssl/binding.py
+++ b/src/cryptography/hazmat/bindings/openssl/binding.py
@@ -39,7 +39,7 @@ def _openssl_assert(lib, ok):
raise InternalError(
"Unknown OpenSSL error. Please file an issue at https://github.com"
"/pyca/cryptography/issues with information on how to reproduce "
- "this.",
+ "this. ({0!r})".format(errors),
errors
)