Merge master.
[libdcp.git] / src / signer.cc
index a280cb07af0ff693fd15f306fca1dbe9ce31584a..8b3cf31d4e955c1abd3f2a3dbbe84d2bfa2f9e27 100644 (file)
@@ -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);