From 2d44f8603577bf1eb125447b3894462fa1310960 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 6 Jul 2022 21:46:03 -0700 Subject: [PATCH] Add additional information to key verification error --- activitypub/resolvers/resolve.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activitypub/resolvers/resolve.go b/activitypub/resolvers/resolve.go index 522bf136c..345a7a831 100644 --- a/activitypub/resolvers/resolve.go +++ b/activitypub/resolvers/resolve.go @@ -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