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 )