Skip to content

Commit

Permalink
Merge pull request #78 from nf-core/fix-missing-panel-param-check
Browse files Browse the repository at this point in the history
Fix panel parameter validation during pre-flight check
  • Loading branch information
scwatts authored Aug 7, 2024
2 parents 49872fc + 21a0bc9 commit 3742776
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/WorkflowMain.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ class WorkflowMain {

if (run_mode === Constants.RunMode.TARGETED) {

if (!params.containsKey('panel')) {
if (!params.containsKey('panel') || params.panel === null) {

def panels = Constants.PANELS_DEFINED.join('\n - ')
log.error "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" +
" A panel is required to be set using the --panel CLI argument or in a \n" +
" configuration file.\n" +
" Currently, the available panels are:\n" +
" A panel is required to be set using the --panel CLI argument or in a\n" +
" configuration file when running in targeted mode.\n" +
" Currently, the available built-in panels are:\n" +
" - ${panels}\n" +
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
Nextflow.exit(1)
Expand Down

0 comments on commit 3742776

Please sign in to comment.