More info in mmap error message (#8058)

Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
This commit is contained in:
Ganesh Vernekar 2020-10-15 12:58:13 +05:30 committed by GitHub
parent 4596abee4d
commit 4ed3ec7b46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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