Improve error message when packfile mmap fails.
authorShawn O. Pearce <spearce@spearce.org>
Sat, 23 Dec 2006 07:34:41 +0000 (02:34 -0500)
committerJunio C Hamano <junkio@cox.net>
Fri, 29 Dec 2006 19:36:45 +0000 (11:36 -0800)
commit73b4e4be7128f75346ce6053d6da1672f243bc74
treedf0ac4eeb57f001a168589cf9c69598ffe8abb5b
parent40be82723ca35d4e95daccc3ccf6456f6876430e
Improve error message when packfile mmap fails.

If we are unable to mmap the a region of the packfile with the mmap()
system call there may be a good reason why, such as a closed file
descriptor or out of address space.  Reporting the system level
error message can help to debug such problems.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c