diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-02-06 14:43:06 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-02-19 14:15:07 +0100 |
| commit | 3fd29f3e1c963196cac69fcbb9d68116f7ea80ec (patch) | |
| tree | 7cb586d304167e4198166ff17dc79d33122a75e5 /internal/util | |
| parent | 2337dcde60a710d2f65d3fe1107811202e34c633 (diff) | |
All: Prepare to get rid of go-errors/errors lib
Diffstat (limited to 'internal/util')
| -rw-r--r-- | internal/util/util.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/util/util.go b/internal/util/util.go index ebda183..85c4b37 100644 --- a/internal/util/util.go +++ b/internal/util/util.go @@ -7,8 +7,6 @@ import ( "net/url" "os" "strings" - - "github.com/go-errors/errors" ) // MakeRandomByteSlice creates a cryptographically random bytes slice of `size` @@ -26,7 +24,7 @@ func EnsureDirectory(dir string) error { // Create with 700 permissions, read, write, execute only for the owner err := os.MkdirAll(dir, 0o700) if err != nil { - return errors.WrapPrefix(err, fmt.Sprintf("failed to create directory '%s'", dir), 0) + return fmt.Errorf("failed to create directory '%s' with error: %w", dir, err) } return nil } |
