mirror of
https://github.com/rancher/steve.git
synced 2025-09-14 06:19:31 +00:00
Merge pull request #72 from MbolotSuse/resource-error-fix
Fixes a bug with resource.error watch events
This commit is contained in:
@@ -257,7 +257,7 @@ func (s *Store) list(apiOp *types.APIRequest, schema *types.APISchema, client dy
|
|||||||
|
|
||||||
func returnErr(err error, c chan watch.Event) {
|
func returnErr(err error, c chan watch.Event) {
|
||||||
c <- watch.Event{
|
c <- watch.Event{
|
||||||
Type: "resource.error",
|
Type: watch.Error,
|
||||||
Object: &metav1.Status{
|
Object: &metav1.Status{
|
||||||
Message: err.Error(),
|
Message: err.Error(),
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user