summaryrefslogtreecommitdiff
path: root/src/signer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/signer.cc')
-rw-r--r--src/signer.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/signer.cc b/src/signer.cc
index a280cb07..8b3cf31d 100644
--- a/src/signer.cc
+++ b/src/signer.cc
@@ -123,8 +123,9 @@ Signer::add_signature_value (xmlpp::Node* parent, string ns) const
throw MiscError ("could not set key name");
}
- if (xmlSecDSigCtxSign (signature_context, parent->cobj ()) < 0) {
- throw MiscError ("could not sign");
+ int const r = xmlSecDSigCtxSign (signature_context, parent->cobj ());
+ if (r < 0) {
+ throw MiscError (String::compose ("could not sign (%1)", r));
}
xmlSecDSigCtxDestroy (signature_context);