From a0ab168ef6478142487a1e17c74271d93fce84e9 Mon Sep 17 00:00:00 2001 From: Omer Levi Hevroni Date: Thu, 4 Jul 2019 20:29:56 +0300 Subject: [PATCH] print error when checking role assignment failed (#3788) --- azurerm/resource_arm_role_assignment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/resource_arm_role_assignment.go b/azurerm/resource_arm_role_assignment.go index b92367ab6d72..7f21010e4228 100644 --- a/azurerm/resource_arm_role_assignment.go +++ b/azurerm/resource_arm_role_assignment.go @@ -109,7 +109,7 @@ func resourceArmRoleAssignmentCreate(d *schema.ResourceData, meta interface{}) e existing, err := roleAssignmentsClient.Get(ctx, scope, name) if err != nil { if !utils.ResponseWasNotFound(existing.Response) { - return fmt.Errorf("Error checking for presence of existing Role Assignment ID for %q (Scope %q)", name, scope) + return fmt.Errorf("Error checking for presence of existing Role Assignment ID for %q (Scope %q): %+v", name, scope, err) } }