From f1b639cffb0aa1d88a5cf60ab2158bfc7a7f5904 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 8 Sep 2006 07:25:14 +0000 Subject: Update descriptive messages for exceptions thrown by cgi_methods. Closes #6103. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5070 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/CHANGELOG | 2 +- actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'actionpack') diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index c34b2f2cb4..1fb95347d2 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,6 +1,6 @@ *SVN* -* Add descriptive messages to the exceptions thrown by cgi_methods. Closes #6091. [Nicholas Seckar] +* Add descriptive messages to the exceptions thrown by cgi_methods. #6091, #6103 [Nicholas Seckar, Bob Silva] * Update JavaScriptGenerator#show/hide/toggle/remove to new Prototype syntax for multiple ids, #6068 [petermichaux@gmail.com] diff --git a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb index 16baa5abda..3c2a1abbb6 100755 --- a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb +++ b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb @@ -192,9 +192,11 @@ class CGIMethods #:nodoc: end def type_conflict!(klass, value) - raise TypeError, "Conflicting types for parameter containers - Expected an instance of #{klass}, but found found one of #{value.class}" + raise TypeError, + "Conflicting types for parameter containers. " + + "Expected an instance of #{klass}, but found an instance of #{value.class}. " + + "This can be caused by passing Array and Hash based paramters qs[]=value&qs[key]=value. " end end -end \ No newline at end of file +end -- cgit v1.2.3