diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-07-17 02:42:47 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-17 02:42:47 +0200 |
commit | a93c6fd677f16285ce1109f9f200b2b235ab981e (patch) | |
tree | f41a55ef2d736a19648bed510aa9ff8cdee40aee /read-cache.c | |
parent | Merge branch 'js/config-mak-windows-pcre-fix' (diff) | |
parent | xmmap: inform Linux users of tuning knobs on ENOMEM (diff) | |
download | git-a93c6fd677f16285ce1109f9f200b2b235ab981e.tar.xz git-a93c6fd677f16285ce1109f9f200b2b235ab981e.zip |
Merge branch 'ew/mmap-failures'
Error message update.
* ew/mmap-failures:
xmmap: inform Linux users of tuning knobs on ENOMEM
Diffstat (limited to 'read-cache.c')
-rw-r--r-- | read-cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c index 0c3ac3cefc..ba2b012a6c 100644 --- a/read-cache.c +++ b/read-cache.c @@ -2233,7 +2233,8 @@ int do_read_index(struct index_state *istate, const char *path, int must_exist) mmap = xmmap_gently(NULL, mmap_size, PROT_READ, MAP_PRIVATE, fd, 0); if (mmap == MAP_FAILED) - die_errno(_("%s: unable to map index file"), path); + die_errno(_("%s: unable to map index file%s"), path, + mmap_os_err()); close(fd); hdr = (const struct cache_header *)mmap; |