summaryrefslogtreecommitdiff
path: root/internal/failover/monitor.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/failover/monitor.go')
-rw-r--r--internal/failover/monitor.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/failover/monitor.go b/internal/failover/monitor.go
index 2219fc4..987cce6 100644
--- a/internal/failover/monitor.go
+++ b/internal/failover/monitor.go
@@ -1,11 +1,12 @@
package failover
import (
+ "fmt"
"context"
+ "errors"
"time"
"github.com/eduvpn/eduvpn-common/internal/log"
- "github.com/go-errors/errors"
)
// The DroppedConMon is a connection monitor that checks for an increase in rx bytes in certain intervals
@@ -91,7 +92,7 @@ func (m *DroppedConMon) Start(ctx context.Context, gateway string, mtuSize int)
case <-ticker.C:
continue
case <-ctx.Done():
- return false, errors.WrapPrefix(context.Canceled, "failover was stopped", 0)
+ return false, fmt.Errorf("failover was stopped with error: %w", context.Canceled)
}
}