X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=phylotypecommand.cpp;fp=phylotypecommand.cpp;h=eddddfa0534f547cfa1802b75211f1c6c9950f65;hb=a9dbc22713bfc056a797361dd757b1a5c98e1c01;hp=38d3bdf929f4ffc110f76ab0a55b12d66ef4ad08;hpb=e10c72304ee071c0c40e0218a06d89dc4731cbc2;p=mothur.git diff --git a/phylotypecommand.cpp b/phylotypecommand.cpp index 38d3bdf..eddddfa 100644 --- a/phylotypecommand.cpp +++ b/phylotypecommand.cpp @@ -272,11 +272,14 @@ int PhylotypeCommand::execute(){ map::iterator itNames = namemap.find(names[i]); //make sure this name is in namefile if (itNames != namemap.end()) { name += namemap[names[i]] + ","; } //you found it in namefile - else { m->mothurOut(names[i] + " is not in your namefile, please correct."); m->mothurOutEndLine(); exit(1); } + else { m->mothurOut("[ERROR]: " + names[i] + " is not in your namefile, please correct."); m->mothurOutEndLine(); m->control_pressed = true; } }else{ name += names[i] + ","; } } } + + if (m->control_pressed) { break; } + name = name.substr(0, name.length()-1); //rip off extra ',' //add bin to list vector if (name != "") { list.push_back(name); } //caused by unknown