API request: return NULL from parasail_sequences_from_file upon error?
jvkersch opened this issue · comments
The function parasail_sequences_from_file
does an exit(1)
when something goes wrong (out of memory, sequence file not found, etc), but that makes it a bit cumbersome to use in library code. Would it be possible to have this function return NULL
instead, possibly with an error message set?
Oh no that's terrible, sorry! Yes I believe I can fix. Happy to accept PRs too ;-). Might get done faster that way.
New feature branch to address this issue: feature/no_exit
https://github.com/jeffdaily/parasail/tree/feature/no_exit
Thanks @jeffdaily for the quick turnaround, and for making an already great library even better!
I had looked at the code a bit over the weekend, but I didn't feel confident enough to make a PR.
This feature will finally release with version 2.4.2.