No need to have rescue around a print
parent
2c12a43e77
commit
3c42fe594e
|
@ -220,8 +220,8 @@ module Exploit::Remote::HttpServer
|
|||
on_request_uri(cli, req)
|
||||
end
|
||||
|
||||
begin
|
||||
vprint_status("Adding hardcoded uri #{uri}")
|
||||
begin
|
||||
add_resource({'Path' => uri, 'Proc' => proc})
|
||||
rescue RuntimeError => e
|
||||
print_error("This module requires a hardcoded uri at #{uri}. Can't run while other modules are using it.")
|
||||
|
|
Loading…
Reference in New Issue