Skip to content

Commit

Permalink
stop using System.exit, which is deprecated by nextflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nebfield committed Aug 6, 2024
1 parent 125d2f0 commit 5d1b07c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions subworkflows/local/ancestry/ancestry_project.nf
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ workflow ANCESTRY_PROJECT {

def projection_error(boolean fail) {
if (fail) {
log.error "ERROR: Projection subworkflow failed"
System.exit(1)
error "ERROR: Projection subworkflow failed"
}
}
3 changes: 1 addition & 2 deletions subworkflows/local/apply_score.nf
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ workflow APPLY_SCORE {

def aggregate_error(boolean fail) {
if (fail) {
log.error "ERROR: No scores calculated!"
System.exit(1)
error "ERROR: No scores calculated!"
}
}

Expand Down
3 changes: 1 addition & 2 deletions subworkflows/local/match.nf
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ workflow MATCH {

def combine_error(boolean fail) {
if (fail) {
log.error "ERROR: Matching subworkflow failed"
System.exit(1)
error "ERROR: Matching subworkflow failed"
}
}
3 changes: 1 addition & 2 deletions subworkflows/local/report.nf
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ def annotate_sampleset(it) {

def report_error(boolean fail) {
if (fail) {
log.error "ERROR: No results report written!"
System.exit(1)
error "ERROR: No results report written!"
}
}

0 comments on commit 5d1b07c

Please sign in to comment.