Merge pull request #12436 from hashicorp/paddy_gcp_sql_op_name_in_errors
provider/google: log the op name in sql op errors.
This commit is contained in:
commit
3b46e96106
|
@ -68,7 +68,7 @@ func sqladminOperationWait(config *Config, op *sqladmin.Operation, activity stri
|
||||||
state.MinTimeout = 2 * time.Second
|
state.MinTimeout = 2 * time.Second
|
||||||
opRaw, err := state.WaitForState()
|
opRaw, err := state.WaitForState()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Error waiting for %s: %s", activity, err)
|
return fmt.Errorf("Error waiting for %s (op %s): %s", activity, op.Name, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
op = opRaw.(*sqladmin.Operation)
|
op = opRaw.(*sqladmin.Operation)
|
||||||
|
|
Loading…
Reference in New Issue