aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-10 16:17:27 +0000
committerlloyd <[email protected]>2010-03-10 16:17:27 +0000
commit66494f4d9db90d04d93874ee37e77a282dd71b07 (patch)
tree5daca6b62600d19fa633b4945d390107d5a05a65 /src/cert
parentda6015b3c61f0834231ff2636e6957a89f9431d3 (diff)
Make cert decoding errors more verbose
Diffstat (limited to 'src/cert')
-rw-r--r--src/cert/x509/x509_obj.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cert/x509/x509_obj.cpp b/src/cert/x509/x509_obj.cpp
index 820972614..1c8066c56 100644
--- a/src/cert/x509/x509_obj.cpp
+++ b/src/cert/x509/x509_obj.cpp
@@ -61,9 +61,9 @@ void X509_Object::init(DataSource& in, const std::string& labels)
decode_info(ber);
}
}
- catch(Decoding_Error)
+ catch(Decoding_Error& e)
{
- throw Decoding_Error(PEM_label_pref + " decoding failed");
+ throw Decoding_Error(PEM_label_pref + " decoding failed: " + e.what());
}
}