Improve error messages.
authorScott Cantor <cantor.2@osu.edu>
Mon, 17 May 2010 00:21:56 +0000 (00:21 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 17 May 2010 00:21:56 +0000 (00:21 +0000)
saml/saml2/metadata/impl/SignatureMetadataFilter.cpp

index 2e6bbd6..11fd3e8 100644 (file)
@@ -392,10 +392,10 @@ void SignatureMetadataFilter::verifySignature(Signature* sig, const XMLCh* peerN
                 catch (exception&) {
                 }
             }
-            throw MetadataFilterException("CredentialResolver did not supply a successful verification key.");
+            throw MetadataFilterException("Unable to verify signature with supplied key(s).");
         }
         else {
-            throw MetadataFilterException("CredentialResolver did not supply a successful verification key.");
+            throw MetadataFilterException("CredentialResolver did not supply any candidate keys.");
         }
     }
     else if (m_trust) {