Skip to content

Commit

Permalink
backport of commit 154a3a7
Browse files Browse the repository at this point in the history
  • Loading branch information
ccapurso committed Mar 23, 2022
1 parent 7ae173e commit 67dd630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/request_handling.go
Expand Up @@ -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()
Expand Down

0 comments on commit 67dd630

Please sign in to comment.