diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-12-28 17:06:07 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-12-28 17:06:07 -0500 |
commit | fa8961c3e8804a2fd606160d7649e973e906d0b4 (patch) | |
tree | 7b05dab00035f95e55fb131f38a15a06e7281a16 /buildscripts | |
parent | a3a0bc64f9082d712d8a0789811257ad45a6cb0b (diff) | |
download | mongo-fa8961c3e8804a2fd606160d7649e973e906d0b4.tar.gz |
Exception classess need codes too SERVER-112
Diffstat (limited to 'buildscripts')
-rw-r--r-- | buildscripts/errorcodes.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/buildscripts/errorcodes.py b/buildscripts/errorcodes.py index a550a931105..16e936e58a1 100644 --- a/buildscripts/errorcodes.py +++ b/buildscripts/errorcodes.py @@ -43,12 +43,15 @@ def assignErrorCodes(): def readErrorCodes( callback ): - p = re.compile( "([um]asser(t|ted)) *\( *(\d+)" ) + ps = [ re.compile( "([um]asser(t|ted)) *\( *(\d+)" ) , + re.compile( "(User|Msg)Exceptio(n)\( *(\d+)" ) + ] for x in getAllSourceFiles(): lineNum = 1 for line in open( x ): - for m in p.findall( line ): - callback( x , lineNum , line , m[2] ) + for p in ps: + for m in p.findall( line ): + callback( x , lineNum , line , m[2] ) lineNum = lineNum + 1 |