diff --git a/pkg/service/service.go b/pkg/service/service.go index 17ef8280..4d8bb05d 100644 --- a/pkg/service/service.go +++ b/pkg/service/service.go @@ -16,7 +16,8 @@ import ( // GetService retrieves a service container based on a label. If prompt is true // and the retrievd count of service containers does not match 1, then a prompt -// is presented to let the user choose. A count of 0 is handled gracefully. +// is presented to let the user choose. An error is returned when no service is +// found. func GetServiceByLabel(c context.Context, cl *client.Client, label string, prompt bool) (swarm.Service, error) { services, err := cl.ServiceList(c, types.ServiceListOptions{}) if err != nil {