diff options
author | Dwight <dmerriman@gmail.com> | 2009-09-01 16:03:41 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2009-09-01 16:03:41 -0400 |
commit | 777c1883c3d019e1318703eb324fa55dff325ad8 (patch) | |
tree | 569651b4b080fb1b33ecbc5395221e7e0e305a67 /db | |
parent | 10fc6958709b017ca1c7db5f2f6ef44a84c3b25d (diff) | |
parent | 184870bf95a09ae696d0c1e2326d5145186b1170 (diff) | |
download | mongo-777c1883c3d019e1318703eb324fa55dff325ad8.tar.gz |
Merge branch 'master' of git@github.com:mongodb/mongo
Diffstat (limited to 'db')
-rw-r--r-- | db/dbcommands.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/db/dbcommands.cpp b/db/dbcommands.cpp index 06f9103723f..b6f68c368c1 100644 --- a/db/dbcommands.cpp +++ b/db/dbcommands.cpp @@ -1358,8 +1358,10 @@ namespace mongo { } } - if ( !valid ) + if ( !valid ){ anObjBuilder.append("errmsg", "no such cmd"); + anObjBuilder.append("bad cmd" , _cmdobj ); + } anObjBuilder.append("ok", ok?1.0:0.0); BSONObj x = anObjBuilder.done(); b.append((void*) x.objdata(), x.objsize()); |