I’d like to get the error code when a login attempt fails, to display the appropriate message to the user. In the doc, the only information about errors is the
localizedDescription property, which is in fact, not localized.
How can I get the error codes, or some information to know what error it is? I could always check the localizedDescription, but this is not very stable since the MongoDB team might change the error message at some point.