Skip to content

Commit ccdd1cd

Browse files
committed
Land rapid7#9231, Properly handle external module errors
2 parents 9e0750b + 81c6823 commit ccdd1cd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/msf/core/module/external.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ def wait_status(mod)
1717
end
1818
end
1919
end
20-
rescue Exception => e #Msf::Modules::External::Bridge::Error => e
20+
rescue Interrupt => e
21+
raise e
22+
rescue Exception => e
2123
elog e.backtrace.join("\n")
22-
fail_with Failure::UNKNOWN, e.message
24+
fail_with Msf::Module::Failure::Unknown, e.message
2325
end
2426
end
2527

0 commit comments

Comments
 (0)