summaryrefslogtreecommitdiff
path: root/db/pdfile.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-12-22 13:26:54 -0500
committerEliot Horowitz <eliot@10gen.com>2010-12-22 13:32:03 -0500
commit1a1b3326e084e1f62b17ca321a730840a7e8ef55 (patch)
tree6a8b09a623a69085dcee666d8a4c09c5e9c63e39 /db/pdfile.cpp
parent6821e09a571f743e36eca217e464e178274cedda (diff)
downloadmongo-1a1b3326e084e1f62b17ca321a730840a7e8ef55.tar.gz
better invalid ns message
Diffstat (limited to 'db/pdfile.cpp')
-rw-r--r--db/pdfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/pdfile.cpp b/db/pdfile.cpp
index bd00f08df5a..c9fe229d7c1 100644
--- a/db/pdfile.cpp
+++ b/db/pdfile.cpp
@@ -272,7 +272,7 @@ namespace mongo {
*/
bool userCreateNS(const char *ns, BSONObj options, string& err, bool logForReplication, bool *deferIdIndex) {
const char *coll = strchr( ns, '.' ) + 1;
- massert( 10356 , "invalid ns", coll && *coll );
+ massert( 10356 , str::stream() << "invalid ns: " << ns , coll && *coll );
char cl[ 256 ];
nsToDatabase( ns, cl );
bool ok = _userCreateNS(ns, options, err, deferIdIndex);