summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2026-02-19 10:42:57 +0100
committerJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2026-02-20 12:19:21 +0100
commit023e1aba98f51615d20e494be65f28afef40dbe2 (patch)
treed543c4d54681b6c8b424164d7de34a1c51d5bde7 /client
parent8907c4f33e2309244a89c5a342a0e9ad393d5cb1 (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
Diffstat (limited to 'client')
-rw-r--r--client/client.go8
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
}