Address Julius's comment

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2018-06-20 09:19:49 +02:00
parent eab78875fe
commit 22061306aa
1 changed files with 2 additions and 2 deletions

View File

@ -20,11 +20,11 @@ func repairBadIndexVersion(logger log.Logger, dir string) error {
// We must actually set the index file version to 2 and revert the meta.json version back to 1. // We must actually set the index file version to 2 and revert the meta.json version back to 1.
dirs, err := blockDirs(dir) dirs, err := blockDirs(dir)
if err != nil { if err != nil {
return errors.Wrapf(err, "list block dirs %s", dir) return errors.Wrapf(err, "list block dirs in %q", dir)
} }
wrapErr := func(err error, d string) error { wrapErr := func(err error, d string) error {
return errors.Wrapf(err, "block dir: %s", d) return errors.Wrapf(err, "block dir: %q", d)
} }
for _, d := range dirs { for _, d := range dirs {
meta, err := readBogusMetaFile(d) meta, err := readBogusMetaFile(d)