From 4003da0fddb46e4e880b42ce4801576c7d31f032 Mon Sep 17 00:00:00 2001 From: Andreas Kohn Date: Mon, 21 Aug 2017 19:26:34 +0200 Subject: [PATCH] Log the directory when the WAL cannot be opened Fixes #125 --- db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.go b/db.go index 8d581cdfa..4775c670b 100644 --- a/db.go +++ b/db.go @@ -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)