1
0
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:
gehrkefc
2024-09-12 15:24:56 -03:00
parent c886752a27
commit be0c0a3d54

View File

@@ -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
}