aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-11-08 13:02:49 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2015-11-08 13:02:49 -0500
commit705ff5ec7be8d76b1f81d6f517ccb3af4c545ea6 (patch)
tree0c8e20a1679f4ec7163a9c84b004893a11eb4aea /src
parentb91a2448c668f42f7d18489dcd71ab02de7112ca (diff)
downloadcryptography-705ff5ec7be8d76b1f81d6f517ccb3af4c545ea6.tar.gz
cryptography-705ff5ec7be8d76b1f81d6f517ccb3af4c545ea6.tar.bz2
cryptography-705ff5ec7be8d76b1f81d6f517ccb3af4c545ea6.zip
Include the full OpenSSL error in the exception message
Diffstat (limited to 'src')
-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
)