mirror of
https://github.com/rancher/steve.git
synced 2025-04-27 19:05:09 +00:00
Fixes a bug with resource.error watch events
Watch events need to have a type defined by k8s.io/apimachinery/pkg/watch to be properly interpreted. Fixes a bug where this was not the case
This commit is contained in:
parent
f4338dd839
commit
59a2c55e14
@ -257,7 +257,7 @@ func (s *Store) list(apiOp *types.APIRequest, schema *types.APISchema, client dy
|
||||
|
||||
func returnErr(err error, c chan watch.Event) {
|
||||
c <- watch.Event{
|
||||
Type: "resource.error",
|
||||
Type: watch.Error,
|
||||
Object: &metav1.Status{
|
||||
Message: err.Error(),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user