provider/google: log the op name in sql op errors.
To aid in tracking down the error that's causing TestAccGoogleSqlDatabaseInstance_basic to fail (it's claiming an op can't be found?) I've added the op name (which is unique) to the error output for op errors.
This commit is contained in:
parent
09a2886546
commit
6531ef57e1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue