diff options
author | Sammy Larbi <sam@codeodor.com> | 2015-06-18 06:30:54 -0500 |
---|---|---|
committer | Sammy Larbi <sam@codeodor.com> | 2015-07-14 15:30:23 -0500 |
commit | ac5dfadb485ff1e06a73d69936de14464586af2c (patch) | |
tree | 49b8252960ff649be460c2da2dea9c5a71bbcbf9 /lib/arel | |
parent | 935796f4fd7d75950db87156d6540028a9044fdf (diff) | |
download | rails-ac5dfadb485ff1e06a73d69936de14464586af2c.tar.gz rails-ac5dfadb485ff1e06a73d69936de14464586af2c.tar.bz2 rails-ac5dfadb485ff1e06a73d69936de14464586af2c.zip |
Improve error message when passed unsupported type
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index f2f9d20f21..63097a2399 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -737,7 +737,7 @@ module Arel end def unsupported o, collector - raise "unsupported: #{o.class.name}" + raise "unsupported argument type: #{o.class.name}. Construct an Arel node instead." end alias :visit_ActiveSupport_Multibyte_Chars :unsupported |