mirror of
https://github.com/niusmallnan/steve.git
synced 2025-06-27 06:56:55 +00:00
Merge pull request #72 from MbolotSuse/resource-error-fix
Fixes a bug with resource.error watch events
This commit is contained in:
commit
1d517bb276
@ -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(),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user