Commit 574ee4e6 authored by Matt Butcher's avatar Matt Butcher Committed by GitHub

Merge pull request #1391 from technosophos/fix/no-objects

fix(tiller): fix wording for a few errors
parents b42f0675 8d32bd2a
...@@ -229,7 +229,7 @@ func (c *Client) Update(namespace string, currentReader, targetReader io.Reader) ...@@ -229,7 +229,7 @@ func (c *Client) Update(namespace string, currentReader, targetReader io.Reader)
// Namespace will set the namespace // Namespace will set the namespace
func (c *Client) Delete(namespace string, reader io.Reader) error { func (c *Client) Delete(namespace string, reader io.Reader) error {
return perform(c, namespace, reader, func(info *resource.Info) error { return perform(c, namespace, reader, func(info *resource.Info) error {
log.Printf("Starting delete for %s", info.Name) log.Printf("Starting delete for %s %s", info.Name, info.Mapping.GroupVersionKind.Kind)
reaper, err := c.Reaper(info.Mapping) reaper, err := c.Reaper(info.Mapping)
if err != nil { if err != nil {
...@@ -307,7 +307,7 @@ func perform(c *Client, namespace string, reader io.Reader, fn ResourceActorFunc ...@@ -307,7 +307,7 @@ func perform(c *Client, namespace string, reader io.Reader, fn ResourceActorFunc
return err return err
} }
if count == 0 { if count == 0 {
return fmt.Errorf("no objects passed to create") return fmt.Errorf("no objects visited")
} }
return nil return nil
} }
......
...@@ -84,7 +84,7 @@ func TestPerform(t *testing.T) { ...@@ -84,7 +84,7 @@ func TestPerform(t *testing.T) {
namespace: "test", namespace: "test",
reader: strings.NewReader(""), reader: strings.NewReader(""),
err: true, err: true,
errMessage: "no objects passed to create", errMessage: "no objects visited",
}, },
} }
......
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