Skip to content

Commit 3ea0b9b

Browse files
committed
* Output executed command on NmapExecutionError
1 parent a0c2768 commit 3ea0b9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nmap3/nmap3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def run_command(self, cmd):
263263
raise (e)
264264
else:
265265
if 0 != sub_proc.returncode:
266-
raise NmapExecutionError(errs.decode('utf8'))
266+
raise NmapExecutionError('Error during command: "' + ' '.join(cmd) + '"\n\n' + errs.decode('utf8'))
267267

268268
# Response is bytes so decode the output and return
269269
return output.decode('utf8').strip()

0 commit comments

Comments
 (0)