From 3e1334b5dece7732ab19a3efc2fbcd7bf1b10345 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 1 Aug 2013 01:36:01 +0000 Subject: [PATCH] Allow the file open error message to propagate upward. The error message from io.open includes the file name and strerror. --- 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 e450c51df..4ad9a95c0 100644 --- a/scripts/ip-geolocation-maxmind.nse +++ b/scripts/ip-geolocation-maxmind.nse @@ -402,7 +402,7 @@ local GeoIP = { self.__index = self o._filename=filename local err - o._filehandle= assert(io.open(filename,'rb'), "Cannot open Maxmind database file") + o._filehandle= assert(io.open(filename,'rb')) o._databaseType = MaxmindDef.COUNTRY_EDITION o._recordLength = MaxmindDef.STANDARD_RECORD_LENGTH