Mongo.Error.not_writable_primary_or_recovering-question-mark

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

not_writable_primary_or_recovering?(error, opts)

View Source

Return true if the error == not writable primary or in recovering mode.