From 67dd6305bd6043e92c276f604b705404e69a7a39 Mon Sep 17 00:00:00 2001 From: Chris Capurso <1036769+ccapurso@users.noreply.github.com> Date: Wed, 23 Mar 2022 21:12:49 +0000 Subject: [PATCH] backport of commit 154a3a7f8f28c1fb910947314f3d64387041423e --- vault/request_handling.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vault/request_handling.go b/vault/request_handling.go index b7bc0dbb95065..b013d654a7643 100644 --- a/vault/request_handling.go +++ b/vault/request_handling.go @@ -321,7 +321,7 @@ func (c *Core) checkToken(ctx context.Context, req *logical.Request, unauth bool // fail later via bad path to avoid confusing items in the log checkExists = false case logical.ErrRelativePath: - return nil, te, err + return nil, te, errutil.UserError{Err: err.Error()} case nil: if existsResp != nil && existsResp.IsError() { return nil, te, existsResp.Error()