rapid7/metasploit-framework — pull request #2779 by wchen-r7 (2013-12-18 21:06:58+00:00)
Title: Raise Msf::OptionValidateError when the PORTS option is invalid

Instead of print_error for invalid ports, modules should be raising Msf::OptionValidateError to warn the user about the invalid input.