summaryrefslogtreecommitdiff
path: root/internal/server/server.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/server.go
parent354706c76e0531a282d1ee904ec5a0640ab34627 (diff)
Refactor: Improve some errors by using errors.New and add context
Diffstat (limited to 'internal/server/server.go')
-rw-r--r--internal/server/server.go2
1 files changed, 1 insertions, 1 deletions
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