From e66740a16ddb22c075c0ffd877ade1fae138cba4 Mon Sep 17 00:00:00 2001 From: paulino Date: Thu, 23 Nov 2017 23:47:15 +0000 Subject: [PATCH] Improves error message. Closes #1056 --- nmap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmap.cc b/nmap.cc index b81c62ea8..fe5e2c4df 100644 --- a/nmap.cc +++ b/nmap.cc @@ -2338,7 +2338,7 @@ int gather_logfile_resumption_state(char *fname, int *myargc, char ***myargv) { /* We mmap it read/write since we will change the last char to a newline if it is not already */ filestr = mmapfile(fname, &filelen, O_RDWR); if (!filestr) { - fatal("Could not mmap() %s read/write", fname); + fatal("Could not mmap() %s file. Make sure you have enough rights and the file really exists.", fname); } if (filelen < 20) {