X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=catchallcommand.cpp;h=b0e5eff6652a9defaa887eb7d21bb9bfe9e372a6;hb=995238e9aa4455e3b59053e3dfe497b89caed79e;hp=69b9f04becdbb492fc69209837be5a0581123b99;hpb=5d6d303e481489e226fdf8d6c5385b99b50718bc;p=mothur.git diff --git a/catchallcommand.cpp b/catchallcommand.cpp index 69b9f04..b0e5eff 100644 --- a/catchallcommand.cpp +++ b/catchallcommand.cpp @@ -500,8 +500,10 @@ int CatchAllCommand::createSummaryFile(string file1, string label, ofstream& out try { ifstream in; - m->openInputFile(file1, in); + int able = m->openInputFile(file1, in, "noerror"); + if (able == 1) { m->mothurOut("[ERROR]: the catchall program did not run properly. Please check to make sure it is located in the same folder as your mothur executable.");m->mothurOutEndLine(); m->control_pressed = true; return 0; } + if (!in.eof()) { string header = m->getline(in); m->gobble(in);