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/log/log.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/log') diff --git a/internal/log/log.go b/internal/log/log.go index 638f2ae..8d3fbfb 100644 --- a/internal/log/log.go +++ b/internal/log/log.go @@ -9,7 +9,6 @@ import ( "path" "github.com/eduvpn/eduvpn-common/internal/util" - "github.com/go-errors/errors" ) // FileLogger defines the type of logger that this package implements @@ -80,7 +79,7 @@ func (logger *FileLogger) Init(lvl Level, dir string) error { 0o666, ) if err != nil { - return errors.WrapPrefix(err, "failed creating log", 0) + return fmt.Errorf("failed creating log: %w", err) } multi := io.MultiWriter(os.Stdout, f) log.SetOutput(multi) -- cgit v1.2.3