summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-24 19:48:06 +0000
committerjeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-24 19:48:06 +0000
commitacd6cfa5b9d83613370f944c253e6f3e2a62ca6e (patch)
treefb4317edf9f41aae9763211bc1675a5dfad8831a /lib
parent1593b25d412e47257154525363fade2f4ff61911 (diff)
downloadruby-acd6cfa5b9d83613370f944c253e6f3e2a62ca6e.tar.gz
ruby-acd6cfa5b9d83613370f944c253e6f3e2a62ca6e.tar.xz
ruby-acd6cfa5b9d83613370f944c253e6f3e2a62ca6e.zip
* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Improving the error
message for Content-Type check failures. [ruby-core:12163] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/xmlrpc/client.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xmlrpc/client.rb b/lib/xmlrpc/client.rb
index 10f547b63..fca0725ed 100644
--- a/lib/xmlrpc/client.rb
+++ b/lib/xmlrpc/client.rb
@@ -549,9 +549,9 @@ module XMLRPC
ct = parse_content_type(resp["Content-Type"]).first
if ct != "text/xml"
if ct == "text/html"
- raise "Wrong content-type: \n#{data}"
+ raise "Wrong content-type (received '#{ct}' but expected 'text/xml'): \n#{data}"
else
- raise "Wrong content-type"
+ raise "Wrong content-type (received '#{ct}' but expected 'text/xml')"
end
end