lib/mongo/error/invalid_read_option.rb in mongo-2.18.1 vs lib/mongo/error/invalid_read_option.rb in mongo-2.18.2
- old
+ new
@@ -29,10 +29,10 @@
# @example Instantiate the exception.
# Mongo::Error::InvalidReadOption.new({:mode => 'bogus'})
#
# @since 2.6.0
def initialize(read_option, msg)
- super("Invalid read option: #{read_option}: #{msg}")
+ super("Invalid read preference value: #{read_option.inspect}: #{msg}")
end
end
end
end