No need to have rescue around a print

bug/bundler_fix
James Lee 2013-06-21 15:55:43 -05:00
parent 2c12a43e77
commit 3c42fe594e
1 changed files with 1 additions and 1 deletions

View File

@ -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.")