yaauie/embedded-mongo — comment on commit 8c2463b8018865fbedfb308e80c4a0603ad28856
File: lib/embedded-mongo/backend/collection.rb line 228
By gdb:

It looks like I've been using "raise Mongo::OperationFailure.new('Not An Array')" elsewhere in the file, so probably best to stick with that (or just switch over all of the stuff in backend/ to this interface)

That being said, why not just silently fail, as presumably that's what mongo does in this case?