mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-05 00:42:54 +00:00
Merge pull request #2621 from dnephin/improve-gcp-error
Fix GCP error printing
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user