raise instead of exit
git-svn-id: file:///home/svn/framework3/trunk@7426 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
927fe6b6c2
commit
95d9f5e676
|
@ -142,7 +142,7 @@ class Msf::Module::Platform
|
||||||
|
|
||||||
if (not mod.const_defined?('Names'))
|
if (not mod.const_defined?('Names'))
|
||||||
elog("Failed to instantiate the platform list for module #{mod}")
|
elog("Failed to instantiate the platform list for module #{mod}")
|
||||||
exit(0)
|
raise RuntimeError.new("Failed to instantiate the platform list for module #{mod}")
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue