all repos — website @ e1524c7db6634f9b7c7d2a6073a997a5433594ea

My website

build: fix error wrapping
Alan Pearce alan@alanpearce.eu
Wed, 24 Apr 2024 18:03:55 +0200
commit

e1524c7db6634f9b7c7d2a6073a997a5433594ea

parent

bbfe6055609c4e7401f27d3dd4a5aa9c0a5242d6

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M cmd/build/build.gocmd/build/build.go
@@ -36,11 +36,11 @@ func build(outDir string, config config.Config) error {
 	privateDir := path.Join(outDir, "private")
 	if err := mkdirp(privateDir); err != nil {
-		return errors.Errorf("could not create private directory: %w", err)
+		return errors.WithMessage(err, "could not create private directory")
 	}
 	publicDir := path.Join(outDir, "public")
 	if err := mkdirp(publicDir); err != nil {
-		return errors.Errorf("could not create public directory: %w", err)
+		return errors.WithMessage(err, "could not create public directory")
 	}
 
 	err := cp.Copy("static", publicDir, cp.Options{