1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 12:59:02 +00:00

Show the host and port when a script throws an error.

This commit is contained in:
david
2009-07-08 19:32:40 +00:00
parent ba2e2299f7
commit cd820ba39b

View File

@@ -539,7 +539,8 @@ local function run (threads)
local s, result = resume(co, unpack(thread.args, 1, thread.args.n));
if not s then -- script error...
hosts[thread.host][co] = nil;
thread:d("%THREAD threw an error!\n%s\n",
thread:d("%THREAD against %s%s threw an error!\n%s\n",
thread.host.ip, thread.port and ":"..thread.port.number or "",
traceback(co, tostring(result)));
thread:close();
elseif status(co) == "suspended" then