Skip to content

Commit

Permalink
return UserError for logical.ErrRelativePath
Browse files Browse the repository at this point in the history
(cherry picked from commit 154a3a7)
  • Loading branch information
ccapurso committed Mar 30, 2022
1 parent 690578d commit a1ff78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/request_handling.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,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 a1ff78a

Please sign in to comment.