Rename err var to be more clear

This commit is contained in:
Jeff Mitchell 2016-07-22 16:57:47 -04:00
parent 418257d27c
commit 3bea6a7afe

View File

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