Bug 1277579: use 'name' in dependency error message; r=kmoir
authorDustin J. Mitchell <dustin@mozilla.com>
Fri, 16 Sep 2016 20:25:29 +0000
changeset 314266 0b5473d5b966f87cc8020d42343e8e1ce3a81ac5
parent 314265 94cb2bf70c74358ac1645eb15bee59381dd3d73a
child 314267 cf19bbf00b0e21f3c8833e6857047b7aae008063
push id30717
push userphilringnalda@gmail.com
push dateSat, 17 Sep 2016 20:38:05 +0000
treeherdermozilla-central@b3aa1f62ce68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmoir
bugs1277579
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1277579: use 'name' in dependency error message; r=kmoir MozReview-Commit-ID: GXX5KNQOGve
taskcluster/taskgraph/optimize.py
--- a/taskcluster/taskgraph/optimize.py
+++ b/taskcluster/taskgraph/optimize.py
@@ -40,17 +40,17 @@ def resolve_task_references(label, task_
     def repl(match):
         key = match.group(1)
         try:
             return taskid_for_edge_name[key]
         except KeyError:
             # handle escaping '<'
             if key == '<':
                 return key
-            raise KeyError("task '{}' has no dependency with label '{}'".format(label, key))
+            raise KeyError("task '{}' has no dependency named '{}'".format(label, key))
 
     def recurse(val):
         if isinstance(val, list):
             return [recurse(v) for v in val]
         elif isinstance(val, dict):
             if val.keys() == ['task-reference']:
                 return TASK_REFERENCE_PATTERN.sub(repl, val['task-reference'])
             else: