summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'state.go')
-rw-r--r--state.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/state.go b/state.go
index 4e9f10e..940ba37 100644
--- a/state.go
+++ b/state.go
@@ -478,7 +478,8 @@ func (state *VPNState) GetConfigSecureInternet(
config, configType, configErr := state.getConfig(server, forceTCP)
if configErr != nil {
- state.Logger.Error(
+ state.Logger.Inherit(
+ configErr,
fmt.Sprintf(
"Failed getting a secure internet configuration with error: %s",
GetErrorTraceback(configErr),
@@ -548,7 +549,7 @@ func (state *VPNState) GetConfigInstituteAccess(url string, forceTCP bool) (stri
config, configType, configErr := state.getConfig(server, forceTCP)
if configErr != nil {
- state.Logger.Error(
+ state.Logger.Inherit(configErr,
fmt.Sprintf(
"Failed getting an institute access server configuration with error: %s",
GetErrorTraceback(configErr),
@@ -577,7 +578,8 @@ func (state *VPNState) GetConfigCustomServer(url string, forceTCP bool) (string,
config, configType, configErr := state.getConfig(server, forceTCP)
if configErr != nil {
- state.Logger.Error(
+ state.Logger.Inherit(
+ configErr,
fmt.Sprintf(
"Failed getting a custom server with error: %s",
GetErrorTraceback(configErr),