mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-01 16:21:06 +00:00
Add more descriptive error message for conflict errors. (#2921)
Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
parent
5760fafc3b
commit
a464c5e6e1
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user