Skip to content

Commit

Permalink
fix: improved error message in case of target rule misspecification
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Jul 20, 2021
1 parent ccd00dc commit 83b1f5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion snakemake/dag.py
Expand Up @@ -1653,7 +1653,10 @@ def rule2job(self, targetrule):
"""Generate a new job from a given rule."""
if targetrule.has_wildcards():
raise WorkflowError(
"Target rules may not contain wildcards. Please specify concrete files or a rule without wildcards."
"Target rules may not contain wildcards. "
"Please specify concrete files or a rule without wildcards at the command line, "
"or have a rule without wildcards at the very top of your workflow (e.g. the typical "
'"rule all" which just collects all results you want to generate in the end).'
)
return self.new_job(targetrule)

Expand Down

0 comments on commit 83b1f5b

Please sign in to comment.