diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xmlrpc/client.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xmlrpc/client.rb b/lib/xmlrpc/client.rb index b9d4affeb2..d6495b55c4 100644 --- a/lib/xmlrpc/client.rb +++ b/lib/xmlrpc/client.rb @@ -349,12 +349,12 @@ module XMLRPC when 'http' then port ||= 80 when 'https' then port ||= 443 else - raise "Wrong protocol specified. Only http or https allowed!" + raise ArgumentError, "Wrong protocol specified. Only http or https allowed!" end port = port.to_i else - raise "Wrong URI as parameter!" + raise ArgumentError, "Wrong URI as parameter!" end proxy_host, proxy_port = (proxy || "").split(":") |