diff --git a/pkg/cli/cvd.go b/pkg/cli/cvd.go index 5116900e..0edb0927 100644 --- a/pkg/cli/cvd.go +++ b/pkg/cli/cvd.go @@ -507,7 +507,7 @@ func listCVDs(srvClient client.Client, controlDir string) ([]*RemoteHost, error) hostName := hosts[i] listResult := <-ch if listResult.Error != nil { - merr = multierror.Append(merr, fmt.Errorf("lists cvds for host %q failed: %w", hostName, err)) + merr = multierror.Append(merr, fmt.Errorf("lists cvds for host %q failed: %w", hostName, listResult.Error)) continue } srvURL, err := srvClient.HostServiceURL(hostName)