mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 22:21:29 +00:00
Corrected a log message to use format strings rather than use concatentation.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user