Add additional information to key verification error

This commit is contained in:
Gabe Kangas 2022-07-06 21:46:03 -07:00
parent 14f405bf58
commit 2d44f86035
No known key found for this signature in database
GPG key ID: 9A56337728BC81EA

View file

@ -178,11 +178,11 @@ func GetResolvedPublicKeyFromIRI(publicKeyIRI string) (vocab.W3IDSecurityV1Publi
} }
if err != nil { if err != nil {
err = errors.Wrap(err, "error resolving publickey from iri") err = errors.Wrap(err, "error resolving publickey from iri, actor may not be valid: "+publicKeyIRI)
} }
if !resolved { if !resolved {
err = errors.New("error resolving publickey from iri") err = errors.New("error resolving publickey from iri, actor may not be valid: " + publicKeyIRI)
} }
return pubkey, err return pubkey, err