More info in mmap error message (#8058)

Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
pull/8077/head
Ganesh Vernekar 4 years ago committed by GitHub
parent 4596abee4d
commit 4ed3ec7b46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,7 +48,7 @@ func OpenMmapFileWithSize(path string, size int) (mf *MmapFile, retErr error) {
b, err := mmap(f, size) b, err := mmap(f, size)
if err != nil { 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 return &MmapFile{f: f, b: b}, nil

Loading…
Cancel
Save