mirror of
https://github.com/rancher/steve.git
synced 2025-09-01 15:37:31 +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 {
|
||||
status, _ := event.Object.(*metav1.Status)
|
||||
apiEvent.Error = fmt.Errorf(status.Message)
|
||||
apiEvent.Error = fmt.Errorf("%s", status.Message)
|
||||
return apiEvent
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user