summaryrefslogtreecommitdiff
path: root/internal/server
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/custom.go2
-rw-r--r--internal/server/instituteaccess.go4
-rw-r--r--internal/server/server.go2
3 files changed, 4 insertions, 4 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
}
diff --git a/internal/server/instituteaccess.go b/internal/server/instituteaccess.go
index 56ed1cf..050e721 100644
--- a/internal/server/instituteaccess.go
+++ b/internal/server/instituteaccess.go
@@ -25,14 +25,14 @@ func (ss *Servers) SetInstituteAccess(srv Server) error {
}
if b.Type != "institute_access" {
- return errors.Errorf("not an institute access server")
+ return errors.Errorf("not an institute access server, url: %s, type: %s", b.URL, b.Type)
}
if _, ok := ss.InstituteServers.Map[b.URL]; ok {
ss.InstituteServers.CurrentURL = b.URL
ss.IsType = InstituteAccessServerType
} else {
- return errors.Errorf("no such institute access server")
+ return errors.Errorf("institute access server with url: %s, is not yet configured", b.URL)
}
return nil
}
diff --git a/internal/server/server.go b/internal/server/server.go
index ef02612..daaa7a6 100644
--- a/internal/server/server.go
+++ b/internal/server/server.go
@@ -294,7 +294,7 @@ func Config(server Server, wireguardSupport bool, preferTCP bool) (*ConfigData,
cfg, err = openVPNGetConfig(server, preferTCP)
// The config supports no available protocol because the profile only supports WireGuard but the client doesn't
default:
- return nil, errors.Errorf("no supported protocol found")
+ return nil, errors.New("no supported protocol found")
}
// Add script security 0 to disable OpenVPN scripts