From abd63096f836f6237d616cde05495503a4848a5c Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Thu, 4 May 2017 12:44:31 -0400 Subject: [PATCH] Update comments --- vault/expiration.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vault/expiration.go b/vault/expiration.go index 6268031fc..553407c33 100644 --- a/vault/expiration.go +++ b/vault/expiration.go @@ -638,17 +638,17 @@ func (m *ExpirationManager) Register(req *logical.Request, resp *logical.Respons if retErr != nil { revResp, err := m.router.Route(logical.RevokeRequest(req.Path, resp.Secret, resp.Data)) if err != nil { - retErr = multierror.Append(retErr, errwrap.Wrapf("an additional error was encountered revoking the newly-generated secret: {{err}}", err)) + retErr = multierror.Append(retErr, errwrap.Wrapf("an additional internal error was encountered revoking the newly-generated secret: {{err}}", err)) } else if revResp != nil && revResp.IsError() { retErr = multierror.Append(retErr, errwrap.Wrapf("an additional error was encountered revoking the newly-generated secret: {{err}}", revResp.Error())) } if err := m.deleteEntry(leaseID); err != nil { - retErr = multierror.Append(retErr, errwrap.Wrapf("an additional error was encountered revoking the newly-generated secret: {{err}}", err)) + retErr = multierror.Append(retErr, errwrap.Wrapf("an additional error was encountered deleting any lease associated with the newly-generated secret: {{err}}", err)) } if err := m.removeIndexByToken(req.ClientToken, leaseID); err != nil { - retErr = multierror.Append(retErr, errwrap.Wrapf("an additional error was encountered revoking the newly-generated secret: {{err}}", err)) + retErr = multierror.Append(retErr, errwrap.Wrapf("an additional error was encountered removing lease indexes associated with the newly-generated secret: {{err}}", err)) } } }()