Skip to content

Commit

Permalink
Reword warning
Browse files Browse the repository at this point in the history
  • Loading branch information
drpatelh committed Mar 22, 2023
1 parent a584b82 commit 61124b2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/NfcoreTemplate.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ class NfcoreTemplate {
//
public static void warnParamsProvidedInConfig(workflow, log) {
if (workflow.configFiles.size() > 1) {
log.warn "[$workflow.manifest.name] Multiple config files detected!\n" +
"Parameters passed via custom config files including the '-c' Nextflow option will be ignored.\n" +
"Please provide pipeline parameters via the '-params-file' Nextflow option instead.\n" +
"Docs: https://nf-co.re/usage/configuration?q=params#custom-configuration-files\n"
log.warn "=============================================================================\n" +
" Multiple config files detected!\n" +
" Please provide pipeline parameters via the CLI or Nextflow '-params-file' option.\n" +
" Custom config files including those provided by the '-c' Nextflow option can be\n" +
" used to provide any configuration except for parameters.\n\n" +
" Docs: https://nf-co.re/usage/configuration#custom-configuration-files\n" +
"==================================================================================="
}
}

Expand Down

0 comments on commit 61124b2

Please sign in to comment.