mirror of
https://github.com/nmap/nmap.git
synced 2026-06-27 03:33:07 +00:00
Show the host and port when a script throws an error.
This commit is contained in:
parent
ba2e2299f7
commit
cd820ba39b
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue