use fail_with

bug/bundler_fix
wchen-r7 2015-09-04 15:12:05 -05:00
parent 7ab506dc06
commit da0752e8c2
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class Metasploit4 < Msf::Post
# Sometimes cmd_exec fails to cat build_prop, so the #get_build_prop method returns
# empty.
if build_prop.empty?
raise RuntimeError, "Failed to retrieve build.prop, you might need to try again."
fail_with(Failure::Unknown, 'Failed to retrieve build.prop, you might need to try again.')
end
android_version = Gem::Version.new(build_prop['ro.build.version.release'])