From 3796b224233bdb58e55c54841efda34558a9c86c Mon Sep 17 00:00:00 2001 From: Till Faelligen Date: Fri, 16 Oct 2020 15:35:50 +0200 Subject: [PATCH] Don't use errors package --- federationapi/routing/send.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index 42c45d0e0..1c4792359 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -30,7 +30,6 @@ import ( "github.com/matrix-org/dendrite/roomserver/api" "github.com/matrix-org/gomatrixserverlib" "github.com/matrix-org/util" - "github.com/pkg/errors" "github.com/sirupsen/logrus" ) @@ -393,7 +392,7 @@ func (t *txnReq) processReceiptEvent(ctx context.Context, } resp := eduserverAPI.InputReceiptEventResponse{} if err := t.eduAPI.InputReceiptEvent(ctx, &req, &resp); err != nil { - return errors.Wrap(err, "unable to set receipt event") + return fmt.Errorf("unable to set receipt event: %w", err) } }