all repos — homestead @ 4c07535d9120fb999b0c008f1866972865f424f7

Code for my website

replace tozd/errors with Southclaws/fault

Alan Pearce
commit

4c07535d9120fb999b0c008f1866972865f424f7

parent

90a4ac43b915abb7a2949f4b5313b40d705b6071

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

changed files
M templates/layout.gotemplates/layout.go
@@ -3,8 +3,8 @@
import ( "io" + "github.com/Southclaws/fault" "github.com/alanpearce/htmlformat" - "gitlab.com/tozd/go/errors" "go.alanpearce.eu/homestead/internal/config" g "go.alanpearce.eu/gomponents"
@@ -123,7 +123,7 @@ pw.CloseWithError(doc.Render(pw))
}() if err := htmlformat.Document(w, pr); err != nil { - return errors.WithStack(err) + return fault.Wrap(err) } return nil