Permalink
Browse files

fix error codes

  • Loading branch information...
1 parent e593a57 commit bf856b75d94a9ef60ce5786dd848dd380d20f1a1 @erh erh committed Jun 6, 2011
Showing with 217 additions and 203 deletions.
  1. +1 −1 buildscripts/errorcodes.py
  2. +2 −2 db/namespace-inl.h
  3. +1 −1 db/oplog.cpp
  4. +213 −199 docs/errors.md
@@ -33,7 +33,7 @@ def assignErrorCodes():
def readErrorCodes( callback ):
ps = [ re.compile( "([umsg]asser(t|ted)) *\( *(\d+)" ) ,
- re.compile( "(User|Msg)Exceptio(n)\( *(\d+)" ) ,
+ re.compile( "(User|Msg|MsgAssertion)Exceptio(n)\( *(\d+)" ) ,
re.compile( "((verify)) *\( *(\d+)" )
]
for x in utils.getAllSourceFiles():
View
@@ -86,8 +86,8 @@ namespace mongo {
e = e->next(this);
if ( ! e ) {
if ( missingExpected )
- throw MsgAssertionException( 13283 , "missing extra" );
- massert(13283, "missing Extra", e);
+ throw MsgAssertionException( 14823 , "missing extra" );
+ massert(14824, "missing Extra", e);
}
i -= NIndexesExtra;
}
View
@@ -673,7 +673,7 @@ namespace mongo {
// no op
}
else {
- throw MsgAssertionException( 13141 , ErrorMsg("error in applyOperation : unknown opType ", *opType) );
+ throw MsgAssertionException( 14825 , ErrorMsg("error in applyOperation : unknown opType ", *opType) );
}
}
Oops, something went wrong.

0 comments on commit bf856b7

Please sign in to comment.