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:
Paddy 2017-03-03 16:47:43 -08:00 committed by GitHub
commit 3b46e96106
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func sqladminOperationWait(config *Config, op *sqladmin.Operation, activity stri
state.MinTimeout = 2 * time.Second
opRaw, err := state.WaitForState()
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)