Skip to content

Commit

Permalink
migrate-lid: fix return err msg (#1612)
Browse files Browse the repository at this point in the history
  • Loading branch information
nonsense authored Aug 9, 2023
1 parent 848a505 commit f164ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/migrate-lid/migrate_lid.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func migrateIndex(ctx context.Context, ipath idxPath, store StoreMigrationApi, f
respch := store.AddIndex(ctx, pieceCid, records, false)
for resp := range respch {
if resp.Err != "" {
return false, fmt.Errorf("adding index %s to store: %s", ipath.path, err)
return false, fmt.Errorf("adding index %s to store: %s", ipath.path, resp.Err)
}
}
log.Debugw("AddIndex", "took", time.Since(addStart).String())
Expand Down

0 comments on commit f164ad4

Please sign in to comment.