replace tozd/errors with Southclaws/fault
1 file changed, 3 insertions(+), 3 deletions(-)
changed files
M internal/markdown/markdown.go → internal/markdown/markdown.go
@@ -3,11 +3,11 @@ import ( "io" + "github.com/Southclaws/fault" fences "github.com/stefanfritsch/goldmark-fences" "github.com/yuin/goldmark" "github.com/yuin/goldmark/extension" htmlrenderer "github.com/yuin/goldmark/renderer/html" - "gitlab.com/tozd/go/errors" ) var markdown = goldmark.New(@@ -22,6 +22,6 @@ &fences.Extender{}, ), ) -func Convert(content []byte, w io.Writer) errors.E { - return errors.WithStack(markdown.Convert(content, w)) +func Convert(content []byte, w io.Writer) error { + return fault.Wrap(markdown.Convert(content, w)) }