mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-30 11:01:09 +02:00
Rename err var to be more clear
This commit is contained in:
parent
418257d27c
commit
3bea6a7afe
@ -66,9 +66,9 @@ func (c *Core) HandleRequest(req *logical.Request) (resp *logical.Response, err
|
||||
}
|
||||
|
||||
// Create an audit trail of the response
|
||||
if err := c.auditBroker.LogResponse(auth, req, resp, err); err != nil {
|
||||
if auditErr := c.auditBroker.LogResponse(auth, req, resp, err); auditErr != nil {
|
||||
c.logger.Printf("[ERR] core: failed to audit response (request path: %s): %v",
|
||||
req.Path, err)
|
||||
req.Path, auditErr)
|
||||
return nil, ErrInternalError
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user