From 7ab4cc5bda5823b0871dfeabb45e89f01bb30c58 Mon Sep 17 00:00:00 2001 From: Brian Kassouf Date: Mon, 19 Nov 2018 13:40:36 -0800 Subject: [PATCH] Update path_role.go (#5820) --- builtin/credential/approle/path_role.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/credential/approle/path_role.go b/builtin/credential/approle/path_role.go index d7008cab06bc..d07cd6182998 100644 --- a/builtin/credential/approle/path_role.go +++ b/builtin/credential/approle/path_role.go @@ -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) } }