1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-04 17:01:16 +00:00

addressing comments from eric #2

This commit is contained in:
gehrkefc
2024-09-13 11:42:50 -03:00
parent be0c0a3d54
commit ed8bdb68e6
5 changed files with 18 additions and 7 deletions

View File

@@ -599,7 +599,7 @@ func (s *Store) Update(apiOp *types.APIRequest, schema *types.APISchema, params
resourceVersion := input.String("metadata", "resourceVersion")
if resourceVersion == "" {
return nil, nil, fmt.Errorf(errResourceVersionRequired)
return nil, nil, errors.New(errResourceVersionRequired)
}
gvk := attributes.GVK(schema)