diff --git a/staging/src/k8s.io/client-go/rest/watch/decoder.go b/staging/src/k8s.io/client-go/rest/watch/decoder.go index e95c020b2e9..9e1e04d14eb 100644 --- a/staging/src/k8s.io/client-go/rest/watch/decoder.go +++ b/staging/src/k8s.io/client-go/rest/watch/decoder.go @@ -51,7 +51,7 @@ func (d *Decoder) Decode() (watch.EventType, runtime.Object, error) { return "", nil, err } if res != &got { - return "", nil, fmt.Errorf("unable to decode to metav1.Event") + return "", nil, fmt.Errorf("unable to decode to metav1.WatchEvent") } switch got.Type { case string(watch.Added), string(watch.Modified), string(watch.Deleted), string(watch.Error), string(watch.Bookmark):