mirror of
https://github.com/rancher/steve.git
synced 2025-09-05 09:21:12 +00:00
addressing eric's comment
This commit is contained in:
@@ -389,7 +389,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 = fmt.Errorf("%s", status.Message)
|
||||||
return apiEvent
|
return apiEvent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user