Skip to content

Commit aa1fec7

Browse files
committed
Use fail_with
1 parent d630eac commit aa1fec7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/auxiliary/gather/eventlog_cred_disclosure.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def run
6868
})
6969

7070
unless res && res.code == 200
71-
print_error("#{peer} - Failed to reach agentHandler servlet")
71+
fail_with(Failure::NotFound, "#{peer} - Failed to reach agentHandler servlet")
7272
return
7373
end
7474

@@ -81,6 +81,7 @@ def run
8181
rescue
8282
fail_with(Failure::Unknown, "#{peer} - Error parsing the XML, dumping output #{xml}")
8383
end
84+
8485
slid_host_ary = []
8586
doc.elements.each('Details/HostDetails') do |ele|
8687
if ele.attributes["password"] != nil

0 commit comments

Comments
 (0)