Skip to content

Commit 9aa3c75

Browse files
committed
Do something for the shut-everything-up event handling practice
1 parent 8a51305 commit 9aa3c75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/post/windows/gather/enum_services.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,12 @@ def run
108108
vprint_good(msgString)
109109
lootString << msgString
110110
end
111-
rescue
111+
rescue ::Exception => e
112+
# July 3rd 2014 wchen-r7: Not very sure what exceptions this method is trying to rescue,
113+
# probably the typical shut-everything-up coding habit. We'll have to fix this later,
114+
# but for now let's at least print the error for debugging purposes
112115
print_error("An error occured enumerating service: #{sname}")
116+
print_error(e.to_s)
113117
end
114118
else
115119
print_error("Problem enumerating services")

0 commit comments

Comments
 (0)