From 3b36da46b2d5a3c2be2d9ac7e54af658818929cc Mon Sep 17 00:00:00 2001 From: batrick Date: Sun, 17 May 2009 19:51:01 +0000 Subject: [PATCH] Corrected a log message to use format strings rather than use concatentation. --- nse_main.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nse_main.lua b/nse_main.lua index 33832acf3..03637febc 100644 --- a/nse_main.lua +++ b/nse_main.lua @@ -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