From daeba70dac28d1ffa6d60e9033940933b80c1fd4 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Fri, 12 Jan 2024 17:07:37 +0100 Subject: [PATCH] fixup! feat: backup revolution --- pkg/service/service.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {