From 4abff4189e45f0a5f6587e08dbd1deaa3665e59a Mon Sep 17 00:00:00 2001 From: gorjan Date: Tue, 21 Feb 2012 09:52:13 +0000 Subject: [PATCH] Send a message in the debug output when the user doesn't select a Maxmind database. --- scripts/ip-geolocation-maxmind.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ip-geolocation-maxmind.nse b/scripts/ip-geolocation-maxmind.nse index d45e9a905..e9ccb674f 100644 --- a/scripts/ip-geolocation-maxmind.nse +++ b/scripts/ip-geolocation-maxmind.nse @@ -398,7 +398,7 @@ local GeoIP = { self.__index = self o._filename=filename local err - o._filehandle= assert(io.open(filename,'rb')) + o._filehandle= assert(io.open(filename,'rb'), "Cannot open Maxmind database file") o._databaseType = MaxmindDef.COUNTRY_EDITION o._recordLength = MaxmindDef.STANDARD_RECORD_LENGTH