matsen / pplacer

Phylogenetic placement and downstream analysis
http://matsen.fredhutch.org/pplacer/
GNU General Public License v3.0
72 stars 17 forks source link

better error message for `bad suffix` #372

Open AlessioMilanese opened 4 years ago

AlessioMilanese commented 4 years ago

When running:

pplacer -c my.refpkg test.fasta2 

I got the following error:

Uncaught exception: Failure("unfamiliar suffix on test.fasta2")
Running pplacer v1.1.alpha19-0-g807f6f3 analysis on test.fasta2...
Fatal error: exception Failure("unfamiliar suffix on test.fasta2")

I had to go into the code: https://github.com/matsen/pplacer/blob/master/common_src/alignment.ml#L70

and see why I got this error. I would change to: Unrecognized file extension. Supported file extensions: ".fasta", ".fa", ".sth", ".sto"