Browse Source

Add additional information to key verification error

pull/1995/head v0.0.12
Gabe Kangas 4 years ago
parent
commit
2d44f86035
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 4
      activitypub/resolvers/resolve.go

4
activitypub/resolvers/resolve.go

@ -178,11 +178,11 @@ func GetResolvedPublicKeyFromIRI(publicKeyIRI string) (vocab.W3IDSecurityV1Publi @@ -178,11 +178,11 @@ func GetResolvedPublicKeyFromIRI(publicKeyIRI string) (vocab.W3IDSecurityV1Publi
}
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 {
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

Loading…
Cancel
Save