Mongo.Error.not_primary_or_secondary-question-mark

You're seeing just the function not_primary_or_secondary-question-mark, go back to Mongo.Error module for more information.
Link to this function

not_primary_or_secondary?(error)

View Source