diff --git a/internal/provider/cyberghost/filter_test.go b/internal/provider/cyberghost/filter_test.go index 0fa81806..1ae94292 100644 --- a/internal/provider/cyberghost/filter_test.go +++ b/internal/provider/cyberghost/filter_test.go @@ -19,9 +19,9 @@ func Test_Cyberghost_filterServers(t *testing.T) { filteredServers []models.CyberghostServer err error }{ - "no servers": { + "no server": { selection: configuration.ServerSelection{VPN: constants.OpenVPN}, - err: errors.New("no server found: for VPN openvpn; protocol udp"), + err: errors.New("no server found: for VPN openvpn; protocol udp; groups Premium UDP Asia, Premium UDP Europe, Premium UDP USA"), //nolint:lll }, "servers without filter defaults to UDP": { servers: []models.CyberghostServer{ diff --git a/internal/provider/utils/formatting.go b/internal/provider/utils/formatting.go index de872591..6dfae41f 100644 --- a/internal/provider/utils/formatting.go +++ b/internal/provider/utils/formatting.go @@ -27,7 +27,7 @@ func NoServerFoundError(selection configuration.ServerSelection) (err error) { } messageParts = append(messageParts, "protocol "+protocol) - switch len(selection.Countries) { + switch len(selection.Groups) { case 0: case 1: part := "group " + selection.Groups[0]