]> git.donarmstrong.com Git - mothur.git/blobdiff - formatcolumn.cpp
fixed sub.sample so that it will eliminate samples with abundances that are less...
[mothur.git] / formatcolumn.cpp
index 2bbcf518b864aa5a5656a271f2922c531e74af11..4ce73b33186425cc9cb62add6258fe9663328513 100644 (file)
@@ -45,8 +45,8 @@ int FormatColumnMatrix::read(NameAssignment* nameMap){
        
                        map<string,int>::iterator itA = nameMap->find(firstName);
                        map<string,int>::iterator itB = nameMap->find(secondName);
-                       if(itA == nameMap->end()){      cerr << "AAError: Sequence '" << firstName << "' was not found in the names file, please correct\n"; exit(1);   }
-                       if(itB == nameMap->end()){      cerr << "ABError: Sequence '" << secondName << "' was not found in the names file, please correct\n"; exit(1);  }
+                       if(itA == nameMap->end()){  m->mothurOut("AAError: Sequence '" + firstName + "' was not found in the names file, please correct\n"); exit(1);  }
+                       if(itB == nameMap->end()){  m->mothurOut("ABError: Sequence '" + secondName + "' was not found in the names file, please correct\n"); exit(1);  }
 
                        if (distance == -1) { distance = 1000000; }