diff --git a/src/mongo/client/dbclient.cpp b/src/mongo/client/dbclient.cpp index 4ac1fbc8cf..f9ccd0822b 100644 --- a/src/mongo/client/dbclient.cpp +++ b/src/mongo/client/dbclient.cpp @@ -914,8 +914,10 @@ namespace mongo { uassertStatusOK(saslClientAuthenticate(this, params)); } else { - uasserted(ErrorCodes::BadValue, - mechanism + " mechanism support not compiled into client library."); + std::string error = mechanism + " mechanism support not compiled into client library." + " (Some mechanisms require the driver be compiled" + " with the flags --ssl or --use-sasl-client)"; + uasserted(ErrorCodes::BadValue, error); } };