Skip to content

Commit

Permalink
Re #302; improve error message for invalid classes
Browse files Browse the repository at this point in the history
  • Loading branch information
tfausak committed Oct 2, 2015
1 parent a53e52a commit ab972eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_interaction/filters/object_filter.rb
Expand Up @@ -42,7 +42,7 @@ def klass
klass_name = options.fetch(:class, name).to_s.camelize
Object.const_get(klass_name)
rescue NameError
raise InvalidClassError, klass_name.inspect
raise InvalidClassError, "class #{klass_name.inspect} does not exist"
end

# @param value [Object]
Expand Down

0 comments on commit ab972eb

Please sign in to comment.