summaryrefslogtreecommitdiff
path: root/src/mongo/client/read_preference.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/read_preference.cpp')
-rw-r--r--src/mongo/client/read_preference.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/mongo/client/read_preference.cpp b/src/mongo/client/read_preference.cpp
index 1ab5c5c13e1..9c58e95a1d4 100644
--- a/src/mongo/client/read_preference.cpp
+++ b/src/mongo/client/read_preference.cpp
@@ -84,9 +84,16 @@ StatusWith<ReadPreference> parseReadPreferenceMode(StringData prefStr) {
}
return Status(ErrorCodes::FailedToParse,
str::stream() << "Could not parse $readPreference mode '" << prefStr
- << "'. Only the modes '" << kPrimaryOnly << "', '"
- << kPrimaryPreferred << "', " << kSecondaryOnly << "', '"
- << kSecondaryPreferred << "', and '" << kNearest
+ << "'. Only the modes '"
+ << kPrimaryOnly
+ << "', '"
+ << kPrimaryPreferred
+ << "', "
+ << kSecondaryOnly
+ << "', '"
+ << kSecondaryPreferred
+ << "', and '"
+ << kNearest
<< "' are supported.");
}