1
0
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:
batrick
2009-05-17 19:51:01 +00:00
parent 4a5bdd4a13
commit 3b36da46b2

View File

@@ -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