]> git.donarmstrong.com Git - mothur.git/blobdiff - slibshuff.cpp
added logfile feature
[mothur.git] / slibshuff.cpp
index a9710ded9303b2f93373216bf2d22ba3c81c527c..219c7094390ec43767806a0255e033774d31ab4d 100644 (file)
@@ -45,14 +45,9 @@ vector<vector<double> > SLibshuff::evaluateAll(){
                return dCXYValues;
        }
        catch(exception& e) {
-               cout << "Standard Error: " << e.what() << " has occurred in the SLibshuff class Function evaluateAll. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+               errorOut(e, "SLibshuff", "evaluateAll");
                exit(1);
        }
-       catch(...) {
-               cout << "An unknown error has occurred in the SLibshuff class function evaluateAll. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
-               exit(1);
-       }       
-       
 }
 
 /***********************************************************************/
@@ -103,14 +98,9 @@ double SLibshuff::sCalculate(int x, int y){
                return sum;
        }
        catch(exception& e) {
-               cout << "Standard Error: " << e.what() << " has occurred in the SLibshuff class Function sCalculate. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+               errorOut(e, "SLibshuff", "sCalculate");
                exit(1);
        }
-       catch(...) {
-               cout << "An unknown error has occurred in the SLibshuff class function sCalculate. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
-               exit(1);
-       }       
-       
 }
 
 /***********************************************************************/