From 155c4bc2af77f71ca9cd5067f3c18d1c9ff67ecf Mon Sep 17 00:00:00 2001 From: cskh Date: Thu, 4 Aug 2022 11:07:40 -0400 Subject: [PATCH] fix(cli): error message in service deregister subcommand (#14028) --- command/services/deregister/deregister.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/services/deregister/deregister.go b/command/services/deregister/deregister.go index 6c28347c07..3f352b36a6 100644 --- a/command/services/deregister/deregister.go +++ b/command/services/deregister/deregister.go @@ -81,7 +81,7 @@ func (c *cmd) Run(args []string) int { } if err := client.Agent().ServiceDeregister(id); err != nil { - c.UI.Error(fmt.Sprintf("Error registering service %q: %s", + c.UI.Error(fmt.Sprintf("Error deregistering service %q: %s", svc.Name, err)) return 1 }