mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 17:59:04 +00:00
Allow the file open error message to propagate upward.
The error message from io.open includes the file name and strerror.
This commit is contained in:
@@ -402,7 +402,7 @@ local GeoIP = {
|
|||||||
self.__index = self
|
self.__index = self
|
||||||
o._filename=filename
|
o._filename=filename
|
||||||
local err
|
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._databaseType = MaxmindDef.COUNTRY_EDITION
|
||||||
o._recordLength = MaxmindDef.STANDARD_RECORD_LENGTH
|
o._recordLength = MaxmindDef.STANDARD_RECORD_LENGTH
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user