minor: exception fix
This commit is contained in:
parent
2267d5b81f
commit
c1366927e2
|
@ -31,7 +31,7 @@ class Hash
|
||||||
#:nodoc:
|
#:nodoc:
|
||||||
def assert_valid_keys(*valid_keys)
|
def assert_valid_keys(*valid_keys)
|
||||||
unknown_keys = keys - [valid_keys].flatten
|
unknown_keys = keys - [valid_keys].flatten
|
||||||
raise(Mongo::MongoArgumentError, "Unknown key(s): #{unknown_keys.join(", ")}") unless unknown_keys.empty?
|
raise(ArgumentError, "Unknown key(s): #{unknown_keys.join(", ")}") unless unknown_keys.empty?
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue