Unverified Commit ca23180b authored by Matthew Fisher's avatar Matthew Fisher Committed by GitHub

Merge pull request #3302 from distorhead/no_resource_found_error_message_fix

Show kind in resource-not-found-in-release error
parents 8a59aed5 13cb8d82
...@@ -274,7 +274,8 @@ func (c *Client) Update(namespace string, originalReader, targetReader io.Reader ...@@ -274,7 +274,8 @@ func (c *Client) Update(namespace string, originalReader, targetReader io.Reader
originalInfo := original.Get(info) originalInfo := original.Get(info)
if originalInfo == nil { if originalInfo == nil {
return fmt.Errorf("no resource with the name %q found", info.Name) kind := info.Mapping.GroupVersionKind.Kind
return fmt.Errorf("no %s with the name %q found", kind, info.Name)
} }
if err := updateResource(c, info, originalInfo.Object, force, recreate); err != nil { if err := updateResource(c, info, originalInfo.Object, force, recreate); err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment