From dae3e434ea009baf70eb337cb5ed3c846b0fb5e6 Mon Sep 17 00:00:00 2001 From: Spencer Jackson Date: Mon, 10 Nov 2014 16:12:40 -0500 Subject: [PATCH] CXX-404 Inform user that auth may need --ssl --- src/mongo/client/dbclient.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } };