all repos — homestead @ 4c07535d9120fb999b0c008f1866972865f424f7

Code for my website

replace tozd/errors with Southclaws/fault

Alan Pearce
commit

4c07535d9120fb999b0c008f1866972865f424f7

parent

90a4ac43b915abb7a2949f4b5313b40d705b6071

1 file changed, 4 insertions(+), 3 deletions(-)

changed files
M internal/multifile/compress.gointernal/multifile/compress.go
@@ -1,10 +1,11 @@
package multifile import ( + "errors" "io" "os" - "gitlab.com/tozd/go/errors" + "github.com/Southclaws/fault" ) type CompressWriter struct {
@@ -22,12 +23,12 @@
func (cw *CompressWriter) Write(p []byte) (int, error) { n, err := cw.Writer.Write(p) if err != nil { - return 0, errors.WithStack(err) + return 0, fault.Wrap(err) } return n, nil } func (cw *CompressWriter) Close() error { - return errors.WithStack(errors.Join(cw.Writer.Close(), cw.File.Close())) + return fault.Wrap(errors.Join(cw.Writer.Close(), cw.File.Close())) }