refactor: ensure errors have stack traces
1 file changed, 4 insertions(+), 4 deletions(-)
changed files
M internal/importer/main.go → internal/importer/main.go
@@ -14,7 +14,7 @@ "go.alanpearce.eu/searchix/internal/index" "go.alanpearce.eu/searchix/internal/programs" "go.alanpearce.eu/x/log" - "github.com/pkg/errors" + "gitlab.com/tozd/go/errors" ) func createSourceImporter(@@ -23,8 +23,8 @@ log *log.Logger, meta *index.Meta, indexer *index.WriteIndex, forceUpdate bool, -) func(*config.Source) error { - return func(source *config.Source) error { +) func(*config.Source) errors.E { + return func(source *config.Source) errors.E { logger := log.With( "name", source.Key,@@ -165,7 +165,7 @@ func (imp *Importer) Start( ctx context.Context, forceUpdate bool, onlyUpdateSources *[]string, -) error { +) errors.E { if len(imp.config.Importer.Sources) == 0 { imp.log.Info("No sources enabled")