summaryrefslogtreecommitdiff
path: root/internal/server/custom.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-02-17 10:35:27 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2023-02-17 10:35:27 +0100
commitb05ce93edfeb86ddd7af5a859eb5e20b3653e56b (patch)
tree163c8d01e96be782eaa9b066639de34e4e03f981 /internal/server/custom.go
parent354706c76e0531a282d1ee904ec5a0640ab34627 (diff)
Refactor: Improve some errors by using errors.New and add context
Diffstat (limited to 'internal/server/custom.go')
-rw-r--r--internal/server/custom.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/server/custom.go b/internal/server/custom.go
index bf0b230..0d78308 100644
--- a/internal/server/custom.go
+++ b/internal/server/custom.go
@@ -18,7 +18,7 @@ func (ss *Servers) SetCustomServer(server Server) error {
ss.CustomServers.CurrentURL = b.URL
ss.IsType = CustomServerType
} else {
- return errors.Errorf("not a custom server")
+ return errors.Errorf("this server is not yet added as a custom server: %s", b.URL)
}
return nil
}