Bug 1385149 - Improve action task testing errors draft
authorBrian Stack <bstack@mozilla.com>
Thu, 27 Jul 2017 18:48:53 -0700
changeset 617155 7f4761e4a013e38b5a304eaae4c9708add2d6f5e
parent 617154 e1bcfa6e44491e226e23d3ab9faea04e0a17abae
child 617156 eccdd37590f904017d667a9c06218bc9765fc20d
push id70951
push userbstack@mozilla.com
push dateFri, 28 Jul 2017 01:49:16 +0000
bugs1385149
milestone56.0a1
Bug 1385149 - Improve action task testing errors MozReview-Commit-ID: AHO7RGlU9g2
taskcluster/taskgraph/actions/registry.py
--- a/taskcluster/taskgraph/actions/registry.py
+++ b/taskcluster/taskgraph/actions/registry.py
@@ -300,17 +300,18 @@ def render_actions_json(parameters):
 def trigger_action_callback(task_group_id, task_id, task, input, callback, parameters,
                             test=False):
     """
     Trigger action callback with the given inputs. If `test` is true, then run
     the action callback in testing mode, without actually creating tasks.
     """
     cb = get_callbacks().get(callback, None)
     if not cb:
-        raise Exception('Unknown callback: {}'.format(callback))
+        raise Exception('Unknown callback: {}. Known callbacks: {}'.format(
+            callback, get_callbacks().keys()))
 
     if test:
         util.testing = True
 
     cb(Parameters(**parameters), input, task_group_id, task_id, task)
 
 
 @memoize