Skip to content

Commit

Permalink
Add additional information to key verification error
Browse files Browse the repository at this point in the history
  • Loading branch information
gabek committed Jul 7, 2022
1 parent 14f405b commit 2d44f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activitypub/resolvers/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d44f86

Please sign in to comment.