aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/x509/x509_obj.cpp6
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());
}
}