More error handling

bug/bundler_fix
sinn3r 2014-02-08 16:06:51 -06:00
parent 07ad99ba3a
commit 22cc665115
1 changed files with 4 additions and 1 deletions

View File

@ -194,7 +194,10 @@ class Webcam
tmp_interface.write(interface)
tmp_interface.close
Rex::Compat.open_webrtc_browser(tmp_interface.path)
found_local_browser = Rex::Compat.open_webrtc_browser(tmp_interface.path)
unless found_local_browser
raise RuntimeError, "Unable to find a suitable browser to connect to the target"
end
end