mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 18:11:35 +00:00
Merge pull request #2621 from dnephin/improve-gcp-error
Fix GCP error printing
This commit is contained in:
commit
e4122d223c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user