Update path_role.go (#5820)

This commit is contained in:
Brian Kassouf 2018-11-19 13:40:36 -08:00 committed by GitHub
parent 610fe599c2
commit 0c6793d774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -791,7 +791,7 @@ func (b *backend) setRoleEntry(ctx context.Context, s logical.Storage, roleName
// a new one is created
if previousRoleID != "" && previousRoleID != role.RoleID {
if err = b.roleIDEntryDelete(ctx, s, previousRoleID); err != nil {
return fmt.Errorf("failed to delete previous role ID index")
return errwrap.Wrapf("failed to delete previous role ID index: {{err}}", err)
}
}