s/logical.ErrorResponse/fmt.Errorf in renewal functions of credential backends

This commit is contained in:
vishalnayak
2016-05-26 10:21:03 -04:00
parent 2fa0773f3f
commit 80faa2f4ed
7 changed files with 12 additions and 10 deletions

View File

@@ -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)