summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-03-01 12:53:24 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2023-03-01 12:53:24 +0100
commit24ffd1a8c7633d28fb0d859ee43ac50c8722cafa (patch)
tree584f0e4663ac93d22d65da37c75d05b227c7574d /client
parentf69b8150a86d77793786600048ebbc5271afb792 (diff)
Client Server: Give a more general error in case location fails
Diffstat (limited to 'client')
-rw-r--r--client/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/server.go b/client/server.go
index fe4c57d..55a3b9e 100644
--- a/client/server.go
+++ b/client/server.go
@@ -497,8 +497,8 @@ func (c *Client) askSecureLocation() error {
// The state has changed, meaning setting the secure location was not successful
if c.FSM.Current != StateAskLocation {
- return errors.Errorf("fsm failed to transit; expected %v / actual %v",
- StateAskLocation, c.FSM.Current)
+ log.Logger.Debugf("fsm failed to transit; expected %v / actual %v", GetStateName(StateAskLocation), GetStateName(c.FSM.Current))
+ return errors.New("failed loading secure internet location")
}
return nil
}