summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-03-07 14:50:44 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-03-07 15:19:43 +0100
commit96092bf0f243da114e79d5e491295b69fadf9caa (patch)
tree50d1c2baedfd602e278306eb49136178419ceb4a /client
parent7372e45c35b73353be86455bcaa09d922cf117bb (diff)
Client: Wrap internal identifier conversion error
Diffstat (limited to 'client')
-rw-r--r--client/client.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/client.go b/client/client.go
index 07b35e6..f6c8279 100644
--- a/client/client.go
+++ b/client/client.go
@@ -337,8 +337,7 @@ func (c *Client) AddServer(ck *cookie.Cookie, identifier string, _type srvtypes.
// Convert to an identifier
identifier, err = http.EnsureValidURL(identifier, true)
if err != nil {
- // TODO: wrap error
- return err
+ return i18nerr.WrapInternalf(err, "failed to convert identifier: %v", identifier)
}
}