diff --git a/lib/WorkflowMain.groovy b/lib/WorkflowMain.groovy index 56047a62..fcf73d9a 100755 --- a/lib/WorkflowMain.groovy +++ b/lib/WorkflowMain.groovy @@ -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)