Skip to content

Commit

Permalink
Add more descriptive error message for conflict errors. (hashicorp#375)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and nat-henderson committed Jan 24, 2019
1 parent 184ae15 commit 2967d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google-beta/iam.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func iamPolicyReadModifyWrite(updater ResourceIamUpdater, modify iamPolicyModify
time.Sleep(backoff)
backoff = backoff * 2
if backoff > 30*time.Second {
return fmt.Errorf("Error applying IAM policy to %s: too many concurrent policy changes.\n", updater.DescribeResource())
return errwrap.Wrapf(fmt.Sprintf("Error applying IAM policy to %s: Too many conflicts. Latest error: {{err}}", updater.DescribeResource()), err)
}
continue
}
Expand Down

0 comments on commit 2967d46

Please sign in to comment.