Merge pull request #2621 from dnephin/improve-gcp-error

Fix GCP error printing
This commit is contained in:
Justin Cormack
2017-10-20 14:22:29 +02:00
committed by GitHub

View File

@@ -461,7 +461,7 @@ func (g *GCPClient) pollOperationStatus(operationName string) error {
return fmt.Errorf("error fetching operation status: %v", err)
}
if operation.Error != nil {
return fmt.Errorf("error running operation: %v", operation.Error)
return fmt.Errorf("error running operation: %s", operation.Error)
}
if operation.Status == "DONE" {
return nil
@@ -478,7 +478,7 @@ func (g *GCPClient) pollZoneOperationStatus(operationName, zone string) error {
return fmt.Errorf("error fetching operation status: %v", err)
}
if operation.Error != nil {
return fmt.Errorf("error running operation: %v", operation.Error)
return fmt.Errorf("error running operation: %s", operation.Error)
}
if operation.Status == "DONE" {
return nil