Skip to content

Commit

Permalink
better error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Jan 12, 2011
1 parent 70599d7 commit d456901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ namespace mongo {
uassert( 10155 , "cannot update reserved $ collection", strchr(ns, '$') == 0 );
if ( strstr(ns, ".system.") ) {
/* dm: it's very important that system.indexes is never updated as IndexDetails has pointers into it */
uassert( 10156 , "cannot update system collection", legalClientSystemNS( ns , true ) );
uassert( 10156 , str::stream() << "cannot update system collection: " << ns << " q: " << patternOrig << " u: " << updateobj , legalClientSystemNS( ns , true ) );
}
return _updateObjects(false, ns, updateobj, patternOrig, upsert, multi, logop, debug);
}
Expand Down

0 comments on commit d456901

Please sign in to comment.