1
0
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:
Michael Bolot
2023-01-12 12:24:41 -06:00
committed by GitHub

View File

@@ -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(),
},