mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 19:52:42 +00:00
Add more specific error handling and handle generic errors more effectively
The client library should type more generic errors from the server.
This commit is contained in:
@@ -436,7 +436,7 @@ func finishRequest(timeout time.Duration, fn resultFunc) (result runtime.Object,
|
||||
case err = <-errCh:
|
||||
return nil, err
|
||||
case <-time.After(timeout):
|
||||
return nil, errors.NewTimeoutError("request did not complete within allowed duration")
|
||||
return nil, errors.NewTimeoutError("request did not complete within allowed duration", 0)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user