From 3fd29f3e1c963196cac69fcbb9d68116f7ea80ec Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 6 Feb 2024 14:43:06 +0100 Subject: All: Prepare to get rid of go-errors/errors lib --- internal/failover/monitor.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/failover/monitor.go') 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) } } -- cgit v1.2.3