rapid7/metasploit-framework — comment on commit e204923966ecee6efb8aaf8e79df3e81e22a4913
File: modules/post/windows/recon/winlocalprv_esc.rb line 59
By todb-r7:

This rescue seems heavy-handed. Probably should just do something like

if File.readable? path
# Do the stuff
else
print_error "Couldn't read file #{path}"
end