Skip to content

Commit

Permalink
Fix: Missing import statements on error messages(nf-core#1566)
Browse files Browse the repository at this point in the history
  • Loading branch information
pharmlovex committed Oct 29, 2024
1 parent 1ba8cee commit db5a429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subworkflows/local/utils_nfcore_sarek_pipeline/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def retrieveInput(need_input, step, outdir) {
def input = null
if (!params.input && !params.build_only_index) {
switch (step) {
case 'mapping': Nextflow.error("Can't start with step $step without samplesheet")
case 'mapping': error("Can't start $step step without samplesheet")
break
case 'markduplicates': log.warn("Using file ${outdir}/csv/mapped.csv");
input = outdir + "/csv/mapped.csv"
Expand All @@ -368,7 +368,7 @@ def retrieveInput(need_input, step, outdir) {
input = outdir + "/csv/variantcalled.csv"
break
default: log.warn("Please provide an input samplesheet to the pipeline e.g. '--input samplesheet.csv'")
Nextflow.error("Unknown step $step")
error("Unknown step $step")
}
}
return input
Expand Down

0 comments on commit db5a429

Please sign in to comment.