throw"You have to supply a 'collection' variable, à la --eval 'var collection = \"animals\"'. Possible collection options for database specified: "+collNames.join(", ")+". Please see https://github.com/JamesCropcho/variety for details.";
throw"You have to supply a 'collection' variable, à la --eval 'var collection = \"animals\"'.\n"+
"Possible collection options for database specified: "+collNames+".\n"+
"Please see https://github.com/JamesCropcho/variety for details.";
}
if(db[collection].count()==0){
throw"The collection specified ("+collection+") in the database specified ("+db+") does not exist or is empty.\n"+
"Possible collection options for database specified: "+collNames+".";