Browse files

better error reporting

  • Loading branch information...
1 parent 70599d7 commit d456901022a2108682c88071fb9129660970a473 @erh erh committed Jan 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 db/update.cpp
View
2 db/update.cpp
@@ -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);
}

0 comments on commit d456901

Please sign in to comment.