mirror of
https://github.com/nmap/nmap.git
synced 2026-06-25 18:48:19 +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:
parent
4035012050
commit
3e1334b5de
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue