Skip to content

Commit

Permalink
print error when checking role assignment failed (#3788)
Browse files Browse the repository at this point in the history
  • Loading branch information
omerlh authored and katbyte committed Jul 4, 2019
1 parent 5597042 commit a0ab168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/resource_arm_role_assignment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit a0ab168

Please sign in to comment.