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
commit 1d517bb276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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