I think there should be a check before actually performing the addDocument action that will throw when a false-y value like undefined as an argument is called with.
This is also the fault of the user (i.e. me), but it was a painful debugging process trying to pinpoint where this was happening.
I think there should be a check before actually performing the
addDocument
action that will throw when a false-y value likeundefined
as an argument is called with.This is also the fault of the user (i.e. me), but it was a painful debugging process trying to pinpoint where this was happening.
What do you think?