mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 04:32:37 +00:00
Remove unneeded edit in error formatting
This commit is contained in:
@@ -1007,7 +1007,7 @@ func CreateCustomSubresourceInstance(ctx context.Context, namespace, name string
|
|||||||
}
|
}
|
||||||
createdObjectMeta, err := meta.Accessor(instance)
|
createdObjectMeta, err := meta.Accessor(instance)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("Error while creating object meta: %v", err)
|
return nil, fmt.Errorf("Error while creating object meta: %w", err)
|
||||||
}
|
}
|
||||||
if len(createdObjectMeta.GetUID()) == 0 {
|
if len(createdObjectMeta.GetUID()) == 0 {
|
||||||
return nil, fmt.Errorf("Missing UUID: %v", instance)
|
return nil, fmt.Errorf("Missing UUID: %v", instance)
|
||||||
|
Reference in New Issue
Block a user