diff options
author | Alan Pearce | 2024-11-28 15:12:00 +0100 |
---|---|---|
committer | Alan Pearce | 2024-11-28 15:12:00 +0100 |
commit | b94f66cfe5bf87ec6d2a32448ca5c55ba118c7aa (patch) | |
tree | eb6f951b3a0959c6ace7be6f111124791e90c54d /internal/builder/builder.go | |
parent | 183b0c8b5edbcf4224d4dd3905ca483204522656 (diff) | |
download | website-b94f66cfe5bf87ec6d2a32448ca5c55ba118c7aa.tar.lz website-b94f66cfe5bf87ec6d2a32448ca5c55ba118c7aa.tar.zst website-b94f66cfe5bf87ec6d2a32448ca5c55ba118c7aa.zip |
Use errors.WithMessage in place of .Wrap
Diffstat (limited to 'internal/builder/builder.go')
-rw-r--r-- | internal/builder/builder.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/builder/builder.go b/internal/builder/builder.go index b99d919..bb39c43 100644 --- a/internal/builder/builder.go +++ b/internal/builder/builder.go @@ -12,9 +12,9 @@ import ( "go.alanpearce.eu/website/internal/config" "go.alanpearce.eu/website/internal/content" - "go.alanpearce.eu/x/log" "go.alanpearce.eu/website/internal/sitemap" "go.alanpearce.eu/website/templates" + "go.alanpearce.eu/x/log" "github.com/a-h/templ" mapset "github.com/deckarep/golang-set/v2" @@ -36,7 +36,7 @@ var compressFiles = false func mkdirp(dirs ...string) error { err := os.MkdirAll(path.Join(dirs...), 0755) - return errors.Wrap(err, "could not create directory") + return errors.WithMessage(err, "could not create directory") } func outputToFile(output io.Reader, pathParts ...string) error { |