Skip to content

Commit

Permalink
-z trees_file now print error if file doesn't exist instead of hanging
Browse files Browse the repository at this point in the history
  • Loading branch information
bqminh committed May 27, 2023
1 parent a4f9662 commit bd4f785
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/treetesting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1497,6 +1497,8 @@ void evaluateTrees(string treeset_file, Params &params, IQTree *tree,
vector<TreeInfo> &info, IntVector &distinct_ids)
{
cout << "Reading trees in " << treeset_file << " ..." << endl;
if (!fileExists(treeset_file))
outError("File not found ", treeset_file);
ifstream in(treeset_file);
evaluateTrees(in, params, tree, info, distinct_ids);
in.close();
Expand Down

0 comments on commit bd4f785

Please sign in to comment.