diff options
| author | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-19 10:42:57 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-20 12:19:21 +0100 |
| commit | 023e1aba98f51615d20e494be65f28afef40dbe2 (patch) | |
| tree | d543c4d54681b6c8b424164d7de34a1c51d5bde7 | |
| parent | 8907c4f33e2309244a89c5a342a0e9ad393d5cb1 (diff) | |
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
| -rw-r--r-- | client/client.go | 8 |
1 files changed, 4 insertions, 4 deletions
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 } |
