From ee6c582ec891f23356436deca380fe353f230f30 Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Mon, 14 Feb 2022 18:07:50 +0300 Subject: [PATCH] [#348] Remove prefix to errors in authmate Signed-off-by: Angira Kekteeva --- authmate/authmate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authmate/authmate.go b/authmate/authmate.go index 870f5edc..fe7ecf65 100644 --- a/authmate/authmate.go +++ b/authmate/authmate.go @@ -242,7 +242,7 @@ func (a *Agent) IssueSecret(ctx context.Context, w io.Writer, options *IssueSecr gatesData, err := createTokens(options, lifetime, cid) if err != nil { - return fmt.Errorf("failed to build bearer token: %w", err) + return err } box, secrets, err := accessbox.PackTokens(gatesData)