Hi there,
I'd suggest to improve some error messages:
|
panic!("there is no flag type for format"); |
The error simply states that
there is no flag type for format
and it took me quite a while digging through rust-htslib to figure out that it actually wants to say something like
Format "XX" was requested for inclusion in vcf-to-txt, but that format field does not appear in the input vcf file(s).
where "XX" is some format annotation shortcut for vcf files. The same probably applies for the info fields as well.
I'd provide a PR, but I don't know rust well enough to gauge whether the error message can occur in other circumstances as well, where my improved message would not be fitting.
All the best
Lucas
Hi there,
I'd suggest to improve some error messages:
rust-bio-tools/src/bcf/to_txt.rs
Line 205 in d2a7750
The error simply states that
and it took me quite a while digging through rust-htslib to figure out that it actually wants to say something like
where "XX" is some format annotation shortcut for vcf files. The same probably applies for the info fields as well.
I'd provide a PR, but I don't know rust well enough to gauge whether the error message can occur in other circumstances as well, where my improved message would not be fitting.
All the best
Lucas