fix(tiller): fix wording for a few errors

This changes the wording of a log and an error message to make it
clearer what is happening.
pull/1391/head
Matt Butcher 8 years ago
parent d744a3d0a6
commit 8d32bd2a60

@ -229,7 +229,7 @@ func (c *Client) Update(namespace string, currentReader, targetReader io.Reader)
// Namespace will set the namespace
func (c *Client) Delete(namespace string, reader io.Reader) 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)
if err != nil {
@ -307,7 +307,7 @@ func perform(c *Client, namespace string, reader io.Reader, fn ResourceActorFunc
return err
}
if count == 0 {
return fmt.Errorf("no objects passed to create")
return fmt.Errorf("no objects visited")
}
return nil
}

@ -84,7 +84,7 @@ func TestPerform(t *testing.T) {
namespace: "test",
reader: strings.NewReader(""),
err: true,
errMessage: "no objects passed to create",
errMessage: "no objects visited",
},
}

Loading…
Cancel
Save