Skip to content

Commit 0e1d45d

Browse files
committed
Add the available labels when a kind dependency cannot be found
1 parent a415291 commit 0e1d45d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/taskgraph/transforms/run/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@ def use_fetches(config, tasks):
269269
if len(dep_tasks) != 1:
270270
raise Exception(
271271
"{name} can't fetch {kind} artifacts because "
272-
"there are {tasks} with label {label} in kind dependencies!".format(
272+
"there are {tasks} with label {label} in kind dependencies!\n"
273+
"Available tasks:"
274+
"\n - {labels}".format(
273275
name=name,
274276
kind=kind,
275277
label=dependencies[kind],
@@ -278,6 +280,7 @@ def use_fetches(config, tasks):
278280
if len(dep_tasks) == 0
279281
else "multiple tasks"
280282
),
283+
labels="\n - ".join(config.kind_dependencies_tasks.keys())
281284
)
282285
)
283286

0 commit comments

Comments
 (0)