Log the directory when the WAL cannot be opened

Fixes #125
This commit is contained in:
Andreas Kohn 2017-08-21 19:26:34 +02:00
parent c4ca881685
commit 4003da0fdd
No known key found for this signature in database
GPG Key ID: B03FDDBC66E99F92
1 changed files with 1 additions and 1 deletions

2
db.go
View File

@ -877,7 +877,7 @@ func (db *DB) openHeadBlock(dir string) (*HeadBlock, error) {
)
wal, err := OpenSegmentWAL(wdir, l, 5*time.Second)
if err != nil {
return nil, errors.Wrap(err, "open WAL %s")
return nil, errors.Wrapf(err, "open WAL %s", dir)
}
h, err := OpenHeadBlock(dir, log.With(db.logger, "block", dir), wal, db.compactor)