From 83b1f5bbde437e13641be2160f4855f54043c046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20K=C3=B6ster?= Date: Tue, 20 Jul 2021 14:45:05 +0200 Subject: [PATCH] fix: improved error message in case of target rule misspecification --- snakemake/dag.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snakemake/dag.py b/snakemake/dag.py index 84354f187..6035aad68 100755 --- a/snakemake/dag.py +++ b/snakemake/dag.py @@ -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)