Closed ricalessandri closed 1 year ago
@ricalessandri thanks for the PR. For sure it is useful to add a legible error message for that piece of code. I would add one additional thing. In the following line in bin/polyply
add required=True
. Then you must pass a sequence to polyply gen_seq
.
Since it then is impossible to not have -seq
, we should slightly rephrase the original error message to something like sequence is empty; you need to provide a sequence to gen_seq
Feel free to rephrase though.
solved with #312
Currently, one gets the following error message if one forgets the
-seq
command line argument when usingpolyply gen_seq
:which is kinda criptic.
With this PR, one gets the following error message:
which I think would help the user better. What do you think?
I coded this up quickly by looking at other error messages but let me know if I did something wrong. I tested the code and the message is printed out when it should. Please also suggest how to improve the message if needed.