-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't use System.exit(1)
#1840
Comments
An easier method is to use error("Genome fasta file not specified with e.g. '--fasta genome.fa' or via a detectable config file.") |
Cannot push my code right now due to some GitHub issue but I had a go at writing some lint code:
So I think this should inform the template changes to make too. |
See commit for how we should replace At the moment Nextflow still generates the
I asked Paolo to fix this just now and it's done so will be available in the next NF release: |
Closed in #2211 |
We've been giving @pditommaso nightmares with our use of
System.exit
:tools/nf_core/pipeline-template/lib/WorkflowPipeline.groovy
Lines 16 to 17 in bc56cdd
Instead, we should be using exceptions:
TODO
System.exit
The text was updated successfully, but these errors were encountered: