lib/riak/serializers.rb in riak-client-1.4.5 vs lib/riak/serializers.rb in riak-client-2.0.0.rc1
- old
+ new
@@ -21,10 +21,10 @@
private
def serializer_for(content_type)
serializers.fetch(content_type[/^[^;\s]+/]) do
- raise NotImplementedError.new(t('serializer_not_implemented', :content_type => content_type.inspect))
+ raise IOError.new(t('serializer_not_implemented', :content_type => content_type.inspect))
end
end
def serializers
@serializers ||= {}