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 }