Skip to content

Commit

Permalink
Update path_role.go (#5820)
Browse files Browse the repository at this point in the history
  • Loading branch information
briankassouf committed Nov 19, 2018
1 parent 767f35e commit 7ab4cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/credential/approle/path_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 7ab4cc5

Please sign in to comment.