diff --git a/discovery/discovery_client.go b/discovery/discovery_client.go index de10158c..50286f4e 100644 --- a/discovery/discovery_client.go +++ b/discovery/discovery_client.go @@ -420,6 +420,11 @@ func (e *ErrGroupDiscoveryFailed) Error() string { return fmt.Sprintf("unable to retrieve the complete list of server APIs: %s", strings.Join(groups, ", ")) } +func (e *ErrGroupDiscoveryFailed) Is(target error) bool { + _, ok := target.(*ErrGroupDiscoveryFailed) + return ok +} + // IsGroupDiscoveryFailedError returns true if the provided error indicates the server was unable to discover // a complete list of APIs for the client to use. func IsGroupDiscoveryFailedError(err error) bool {