all repos — searchix @ 9015baf955c94a806c01b3dcd5648c8e68ad2685

Search engine for NixOS, nix-darwin, home-manager and NUR users

refactor: ensure errors have stack traces

Alan Pearce
commit

9015baf955c94a806c01b3dcd5648c8e68ad2685

parent

7bb77ff5729cc9434afee895a470fd3b4c12e6d1

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

changed files
M internal/components/markdown.templinternal/components/markdown.templ
@@ -5,9 +5,9 @@ "regexp"
"go.alanpearce.eu/searchix/internal/nix" + "context" "github.com/yuin/goldmark" "github.com/yuin/goldmark/extension" - "context" "io" )
@@ -27,7 +27,7 @@ return text
} func markdown(text nix.Markdown) templ.Component { - return templ.ComponentFunc(func(ctx context.Context, w io.Writer) error { + return templ.ComponentFunc(func(ctx context.Context, w io.Writer) errors.E { err := md.Convert([]byte(text), w) return err