Skip to content
Permalink
Browse files
fix: improved error message in case of target rule misspecification
  • Loading branch information
johanneskoester committed Jul 20, 2021
1 parent ccd00dc commit 83b1f5bbde437e13641be2160f4855f54043c046
Showing 1 changed file with 4 additions and 1 deletion.
@@ -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)

0 comments on commit 83b1f5b

Please sign in to comment.