Land #8212, Handle failures loading external modules
commit
b25cdd2d3b
|
@ -82,6 +82,14 @@ class Msf::Modules::Loader::Executable < Msf::Modules::Loader::Base
|
|||
load_error(full_path, Errno::ENOENT.new)
|
||||
return ''
|
||||
end
|
||||
Msf::Modules::External::Shim.generate(full_path)
|
||||
begin
|
||||
Msf::Modules::External::Shim.generate(full_path)
|
||||
rescue ::Exception => e
|
||||
elog "Unable to load module #{full_path} #{e.class} #{e}"
|
||||
# XXX migrate this to a full load_error when we can tell the user why the
|
||||
# module did not load and/or how to resolve it.
|
||||
# load_error(full_path, e)
|
||||
''
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue