From bed8ba812bd4280f405d4c66eebfee03991990ba Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Sat, 21 Nov 2009 21:31:37 -0500 Subject: [PATCH] fix assertion SERVER-433 --- tools/sniffer.cpp | 4 ++-- 1 file 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 )