Permalink
Browse files

minor: exception fix

  • Loading branch information...
1 parent 2267d5b commit c1366927e2606aec37354694c5d1228f5ea6a396 @banker banker committed Apr 5, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mongo/util/core_ext.rb
View
2 lib/mongo/util/core_ext.rb
@@ -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

0 comments on commit c136692

Please sign in to comment.