mirror of
https://github.com/nmap/nmap.git
synced 2026-06-09 17:22:26 +00:00
Corrected a log message to use format strings rather than use concatentation.
This commit is contained in:
parent
4a5bdd4a13
commit
3b36da46b2
1 changed files with 3 additions and 2 deletions
|
|
@ -192,8 +192,9 @@ do
|
|||
function Script.new (filename)
|
||||
assert(type(filename) == "string", "string expected");
|
||||
if not find(filename, "%.nse$") then
|
||||
log_error("Warning: Loading '"..filename..
|
||||
"' - the recommended file extension is '.nse'.");
|
||||
log_error(
|
||||
"Warning: Loading '%s' -- the recommended file extension is '.nse'.",
|
||||
filename);
|
||||
end
|
||||
local file_closure = assert(loadfile(filename));
|
||||
-- Give the closure its own environment, with global access
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue