X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedcommand.cpp;fp=sharedcommand.cpp;h=39801063110e6ca91a3f9029caf5c7b6eb8d6e91;hb=5b72d1cf3fa48730e5bb70d59cced1e43e1fe424;hp=e6e790d1687f27a7607555c176bd7b1ebcd44363;hpb=6c2b1e530a5c0bb87040e58a3e410097acdfcc3d;p=mothur.git diff --git a/sharedcommand.cpp b/sharedcommand.cpp index e6e790d..3980106 100644 --- a/sharedcommand.cpp +++ b/sharedcommand.cpp @@ -1083,8 +1083,12 @@ int SharedCommand::ListGroupSameSeqs(vector& groupMapsSeqs, SharedListVe for (int j = 0; j < listNames.size(); j++) { int num = groupNamesSeqs.count(listNames[j]); - if (num == 0) { error = 1; m->mothurOut("[ERROR]: " + listNames[j] + " is in your listfile and not in your groupfile. Please correct."); m->mothurOutEndLine(); } - else { groupNamesSeqs.erase(listNames[j]); } + if (num == 0) { + error = 1; + if (groupfile != "") { + m->mothurOut("[ERROR]: " + listNames[j] + " is in your listfile and not in your groupfile. Please correct."); m->mothurOutEndLine(); } + else{ m->mothurOut("[ERROR]: " + listNames[j] + " is in your listfile and not in your count file. Please correct."); m->mothurOutEndLine(); } + }else { groupNamesSeqs.erase(listNames[j]); } } }