replace tozd/errors with Southclaws/fault
1 file changed, 4 insertions(+), 3 deletions(-)
changed files
M internal/publisher/app.go → internal/publisher/app.go
@@ -3,7 +3,8 @@ import ( "net/http" - "gitlab.com/tozd/go/errors" + "github.com/Southclaws/fault" + "github.com/Southclaws/fault/fmsg" "go.hacdias.com/indielib/indieauth" "go.alanpearce.eu/homestead/internal/config"@@ -26,7 +27,7 @@ siteSettings templates.SiteSettings *server.App } -func New(opts *Options, log *log.Logger) (*App, errors.E) { +func New(opts *Options, log *log.Logger) (*App, error) { var err error app := &App{ log: log,@@ -45,7 +46,7 @@ } err = indieauth.IsValidProfileURL(opts.BaseURL.String()) if err != nil { - return nil, errors.WithMessage(err, "invalid base URL") + return nil, fault.Wrap(err, fmsg.With("invalid base URL")) } mux := ihttp.NewServeMux()