From 4ed3ec7b46c25896930953b234d166c3faa6715b Mon Sep 17 00:00:00 2001 From: Ganesh Vernekar <15064823+codesome@users.noreply.github.com> Date: Thu, 15 Oct 2020 12:58:13 +0530 Subject: [PATCH] More info in mmap error message (#8058) Signed-off-by: Ganesh Vernekar --- tsdb/fileutil/mmap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/fileutil/mmap.go b/tsdb/fileutil/mmap.go index 5cb123810..4dbca4f97 100644 --- a/tsdb/fileutil/mmap.go +++ b/tsdb/fileutil/mmap.go @@ -48,7 +48,7 @@ func OpenMmapFileWithSize(path string, size int) (mf *MmapFile, retErr error) { b, err := mmap(f, size) if err != nil { - return nil, errors.Wrap(err, "mmap") + return nil, errors.Wrapf(err, "mmap, size %d", size) } return &MmapFile{f: f, b: b}, nil