Skip to content

Commit

Permalink
Update pkg/index/job/exportation/service/exporter.go
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: s-shiraki <[email protected]>
  • Loading branch information
highpon and coderabbitai[bot] authored Dec 17, 2024
1 parent 76dee08 commit e5367eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/index/job/exportation/service/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit e5367eb

Please sign in to comment.