From 023e1aba98f51615d20e494be65f28afef40dbe2 Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Thu, 19 Feb 2026 10:42:57 +0100 Subject: Client: Remove confusing identifier on connect error This is confusing ass with secure internet this would give the org ID The error cause should have the failing URL --- client/client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/client.go') diff --git a/client/client.go b/client/client.go index ed1f673..2e89fee 100644 --- a/client/client.go +++ b/client/client.go @@ -512,16 +512,16 @@ func (c *Client) GetConfig(ck *cookie.Cookie, identifier string, _type srvtypes. if err != nil { if startup { if errors.Is(err, eduvpnapi.ErrAuthorizeDisabled) { - return nil, i18nerr.Newf("The client tried to autoconnect to the VPN server: '%s', but you need to authorize again. Please manually connect again.", identifier) + return nil, i18nerr.New("The client tried to autoconnect to the server, but you need to authorize again. Please manually connect again.") } - return nil, i18nerr.Wrapf(err, "The client tried to autoconnect to the VPN server: '%s', but the operation failed to complete", identifier) + return nil, i18nerr.Wrap(err, "The client tried to autoconnect to the server, but the operation failed to complete") } - return nil, i18nerr.Wrapf(err, "Failed to connect to server: '%s'", identifier) + return nil, i18nerr.Wrap(err, "Failed to connect to server") } cfg, err = c.Servers.ConnectWithCallbacks(ck.Context(), srv, pTCP) if err != nil { - return nil, i18nerr.Wrapf(err, "Failed to obtain a VPN configuration for server: '%s'", identifier) + return nil, i18nerr.Wrap(err, "Failed to obtain a VPN configuration for the server") } return cfg, nil } -- cgit v1.2.3