Closed amkozlov closed 7 years ago
@amkozlov : is this still the case (writing to console) or shall we close it?
@xflouris: it's fixed now for newick parser functions, but the same problem still exists in pll_phylip_parse_msa
. Could you please implement similar solution there, and also report the position of error?
thanks! I'll update this today together with all error codes.
Parsing functions (e.g.,
pll_rtree_parse_newick
) write (rather uninformative) Bison/Flex error messages directly to the console/stderr:which is not the optimal behavior, especially in the cases where user program will attempt to fix the problem (e.g., by calling
pll_utree_parse_newick
next).So they should better set
pll_errno
/pll_errmsg
instead.