diff options
author | Jack Lloyd <[email protected]> | 2017-11-14 09:18:29 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-11-14 16:19:44 -0500 |
commit | 9d4f65f3ddd2afebfc59c7104ffe3814c0776dc7 (patch) | |
tree | 2ec10db7849d008f8e29cb464100e4251fed4ea2 | |
parent | 653453b211d94538fb158b830eb8bf4872e4288d (diff) |
Use new Decoding_Error constructor
-rw-r--r-- | src/lib/x509/x509_obj.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/x509/x509_obj.cpp b/src/lib/x509/x509_obj.cpp index f566be00e..dad27d6ff 100644 --- a/src/lib/x509/x509_obj.cpp +++ b/src/lib/x509/x509_obj.cpp @@ -299,13 +299,11 @@ void X509_Object::do_decode() } catch(Decoding_Error& e) { - throw Decoding_Error(m_PEM_label_pref + " decoding failed (" + - e.what() + ")"); + throw Decoding_Error(m_PEM_label_pref + " decoding failed", e.what()); } catch(Invalid_Argument& e) { - throw Decoding_Error(m_PEM_label_pref + " decoding failed (" + - e.what() + ")"); + throw Decoding_Error(m_PEM_label_pref + " decoding failed", e.what()); } } |