diff --git a/pkg/index/job/exportation/service/exporter.go b/pkg/index/job/exportation/service/exporter.go index 80d830c3a9..754796e4be 100644 --- a/pkg/index/job/exportation/service/exporter.go +++ b/pkg/index/job/exportation/service/exporter.go @@ -76,7 +76,7 @@ func New(opts ...Option) (Exporter, error) { if err := file.MkdirAll(e.indexPath, os.ModePerm); err != nil { log.Errorf("failed to create dir %s", e.indexPath) - return nil, err + return nil, errors.Wrap(err, "failed to create index path directory") } path := file.Join(e.indexPath, fmt.Sprintf("%s.db", strconv.FormatInt(time.Now().Unix(), 10)))