about summary refs log tree commit diff stats
path: root/internal/importer/main.go
diff options
context:
space:
mode:
authorAlan Pearce2025-03-12 22:39:51 +0100
committerAlan Pearce2025-03-12 22:39:51 +0100
commit9015baf955c94a806c01b3dcd5648c8e68ad2685 (patch)
tree5f59386c2ab31b6e45b85576e45a1fc8ae448ae0 /internal/importer/main.go
parent7bb77ff5729cc9434afee895a470fd3b4c12e6d1 (diff)
downloadsearchix-9015baf955c94a806c01b3dcd5648c8e68ad2685.tar.lz
searchix-9015baf955c94a806c01b3dcd5648c8e68ad2685.tar.zst
searchix-9015baf955c94a806c01b3dcd5648c8e68ad2685.zip
refactor: ensure errors have stack traces HEAD main
Diffstat (limited to 'internal/importer/main.go')
-rw-r--r--internal/importer/main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/importer/main.go b/internal/importer/main.go
index 7181926..e2c222c 100644
--- a/internal/importer/main.go
+++ b/internal/importer/main.go
@@ -14,7 +14,7 @@ import (
 	"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 @@ func createSourceImporter(
 	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")