From e5367eb021eda5a4f881dff4a93b34564f5c1f4f Mon Sep 17 00:00:00 2001 From: s-shiraki Date: Wed, 18 Dec 2024 00:09:44 +0900 Subject: [PATCH] Update pkg/index/job/exportation/service/exporter.go Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: s-shiraki --- pkg/index/job/exportation/service/exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))