diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-11-21 21:31:37 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-11-21 21:31:37 -0500 |
commit | bed8ba812bd4280f405d4c66eebfee03991990ba (patch) | |
tree | f06e8bc680587278dbe901e122d08e020ecc5453 /tools/sniffer.cpp | |
parent | 340f06ab2493625b283510208c3ea2a752328514 (diff) | |
download | mongo-bed8ba812bd4280f405d4c66eebfee03991990ba.tar.gz |
fix assertion SERVER-433
Diffstat (limited to 'tools/sniffer.cpp')
-rw-r--r-- | tools/sniffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/sniffer.cpp b/tools/sniffer.cpp index 9c87a4d72a4..26830d7d29d 100644 --- a/tools/sniffer.cpp +++ b/tools/sniffer.cpp @@ -370,8 +370,8 @@ int main(int argc, char **argv){ } else if ( arg == string( "--forward" ) ) { forwardAddress = args[ ++i ]; } else if ( arg == string( "--source" ) ) { - assert( source == false ); - assert(args.size() > i + 2); + uassert( "can't use --source twice" , source == false ); + uassert( "source needs more args" , args.size() > i + 2); source = true; replay = ( args[ ++i ] == string( "FILE" ) ); if ( replay ) |