Skip to content

Commit

Permalink
assign error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
U-tellus\cwestin committed Dec 12, 2011
1 parent 4ef6e17 commit 4362ed1
Show file tree
Hide file tree
Showing 2 changed files with 643 additions and 604 deletions.
6 changes: 3 additions & 3 deletions db/commands/pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ namespace mongo {
for(size_t iStep = 0; iStep < nSteps; ++iStep) {
/* pull out the pipeline element as an object */
BSONElement pipeElement(pipeline[iStep]);
if (pipeElement.type() != Object) {
assert(pipeElement.type() == Object); // CW TODO user error
}
uassert(15942, str::stream() << "pipeline element " <<
iStep << " is not an object",
pipeElement.type() == Object);
BSONObj bsonObj(pipeElement.Obj());

intrusive_ptr<DocumentSource> pSource;
Expand Down
Loading

0 comments on commit 4362ed1

Please sign in to comment.