improve error message on failed mmap