diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-08 07:25:14 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-08 07:25:14 +0000 |
commit | f1b639cffb0aa1d88a5cf60ab2158bfc7a7f5904 (patch) | |
tree | 43c287e4a8afa138faa924a5f9d1dc52d56b8815 /actionpack/lib/action_controller/cgi_ext | |
parent | 8d9e6609f8f67e55bba1f9bdbea62af22360dd3c (diff) | |
download | rails-f1b639cffb0aa1d88a5cf60ab2158bfc7a7f5904.tar.gz rails-f1b639cffb0aa1d88a5cf60ab2158bfc7a7f5904.tar.bz2 rails-f1b639cffb0aa1d88a5cf60ab2158bfc7a7f5904.zip |
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
Diffstat (limited to 'actionpack/lib/action_controller/cgi_ext')
-rwxr-xr-x | actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | 8 |
1 files changed, 5 insertions, 3 deletions
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 |