mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
s/logical.ErrorResponse/fmt.Errorf in renewal functions of credential backends
This commit is contained in:
@@ -84,7 +84,7 @@ func (b *backend) pathLoginRenew(
|
||||
verifyResp = verifyResponse
|
||||
}
|
||||
if !policyutil.EquivalentPolicies(verifyResp.Policies, req.Auth.Policies) {
|
||||
return logical.ErrorResponse("policies do not match"), nil
|
||||
return nil, fmt.Errorf("policies do not match")
|
||||
}
|
||||
|
||||
config, err := b.Config(req.Storage)
|
||||
|
||||
Reference in New Issue
Block a user