From 705ff5ec7be8d76b1f81d6f517ccb3af4c545ea6 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sun, 8 Nov 2015 13:02:49 -0500 Subject: Include the full OpenSSL error in the exception message --- src/cryptography/hazmat/bindings/openssl/binding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ) -- cgit v1.2.3