diff --git a/src/taskgraph/transforms/run/__init__.py b/src/taskgraph/transforms/run/__init__.py index be457ab26..442788e18 100644 --- a/src/taskgraph/transforms/run/__init__.py +++ b/src/taskgraph/transforms/run/__init__.py @@ -269,7 +269,9 @@ def use_fetches(config, tasks): if len(dep_tasks) != 1: raise Exception( "{name} can't fetch {kind} artifacts because " - "there are {tasks} with label {label} in kind dependencies!".format( + "there are {tasks} with label {label} in kind dependencies!\n" + "Available tasks:" + "\n - {labels}".format( name=name, kind=kind, label=dependencies[kind], @@ -278,6 +280,9 @@ def use_fetches(config, tasks): if len(dep_tasks) == 0 else "multiple tasks" ), + labels="\n - ".join( + config.kind_dependencies_tasks.keys() + ), ) )