]> git.donarmstrong.com Git - mothur.git/blobdiff - engine.cpp
fixed multiple bugs for 1.4 release
[mothur.git] / engine.cpp
index ac49206040520592a212b68594305cf464494155..11d738dd0f2384b42a26f21349eeaa7bbca80a2a 100644 (file)
@@ -127,6 +127,9 @@ BatchEngine::~BatchEngine(){
 //This Function allows the user to run a batchfile containing several commands on Dotur
 bool BatchEngine::getInput(){
        try {
+               //check if this is a valid batchfile
+               if (openedBatch == 1) {  cout << "unable to open batchfile" << endl;  return 1; }
+       
                string input = "";
                string commandName = "";
                bool errorFree;