From 80f6b783322acdf42b2c65d50da6b1304cf3e464 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Wed, 17 Nov 2021 22:32:33 +0000 Subject: [PATCH] chore(config): fix bad error wrapping --- internal/configuration/selection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/configuration/selection.go b/internal/configuration/selection.go index e2318e30..eaaa8d38 100644 --- a/internal/configuration/selection.go +++ b/internal/configuration/selection.go @@ -138,7 +138,7 @@ func (settings *OpenVPNSelection) readProtocolAndPort(r reader) (err error) { settings.CustomPort, err = readOpenVPNCustomPort(r, openvpnPortValidation{allAllowed: true}) if err != nil { - return fmt.Errorf("environment variable PORT: %w", err) + return err } return nil