From 39be3a4621d955e672630717f4b962c69f198f83 Mon Sep 17 00:00:00 2001 From: djalal Date: Tue, 16 Aug 2011 01:22:01 +0000 Subject: [PATCH] o [NSE] Use the correct variable 'value' instead of 'rule_return' to show the error message of the rule function and why it has failed. --- nse_main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nse_main.lua b/nse_main.lua index 46efedb47..3456c55c3 100644 --- a/nse_main.lua +++ b/nse_main.lua @@ -358,8 +358,8 @@ do thread.parent = thread; -- itself return thread; elseif not s then - print_debug(1, "a thread for %s failed to load:\n%s\n", self.filename, - traceback(co, tostring(rule_return))); + log_error("A thread for %s failed to load:\n%s\n", self.filename, + traceback(co, tostring(value))); end return nil; end