Fix GCP error printing
@@ -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
