diff options
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/namespace_string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h index 32837f06b35..ecb04fc5e1e 100644 --- a/src/mongo/db/namespace_string.h +++ b/src/mongo/db/namespace_string.h @@ -162,10 +162,10 @@ public: NamespaceString(StringData dbName, StringData collectionName) : _ns(dbName.size() + collectionName.size() + 1, '\0') { uassert(ErrorCodes::InvalidNamespace, - "'.' is an invalid character in a database name", + "'.' is an invalid character in the database name: " + dbName, dbName.find('.') == std::string::npos); uassert(ErrorCodes::InvalidNamespace, - "Collection names cannot start with '.'", + "Collection names cannot start with '.': " + collectionName, collectionName.empty() || collectionName[0] != '.'); std::string::iterator it = std::copy(dbName.begin(), dbName.end(), _ns.begin()); |