minor: exception fix

This commit is contained in:
Kyle Banker 2010-04-05 12:32:38 -04:00
parent 2267d5b81f
commit c1366927e2
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class Hash
#:nodoc:
def assert_valid_keys(*valid_keys)
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