mirror of
https://github.com/rancher/steve.git
synced 2025-08-18 22:28:35 +00:00
backporting partition store change
This commit is contained in:
parent
0eb5d1af26
commit
83508911ca
@ -4,6 +4,7 @@ package partition
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"reflect"
|
"reflect"
|
||||||
@ -389,7 +390,7 @@ func ToAPIEvent(apiOp *types.APIRequest, schema *types.APISchema, event watch.Ev
|
|||||||
|
|
||||||
if event.Type == watch.Error {
|
if event.Type == watch.Error {
|
||||||
status, _ := event.Object.(*metav1.Status)
|
status, _ := event.Object.(*metav1.Status)
|
||||||
apiEvent.Error = fmt.Errorf(status.Message)
|
apiEvent.Error = errors.New(status.Message)
|
||||||
return apiEvent
|
return apiEvent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user