Commit d87b0966 authored by Joe Mason's avatar Joe Mason Committed by Commit Bot

More context when _load_codereview_impl asserts

Bug: 908466
Change-Id: I715633c64fff343d07dbcf50c261e686d77e8c44
Reviewed-on: https://chromium-review.googlesource.com/c/1351511Reviewed-by: 's avatarAndy Perelson <ajp@chromium.org>
Reviewed-by: 's avatarEdward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: Joe Mason <joenotcharles@google.com>
parent 7808a519
......@@ -1110,7 +1110,9 @@ class Changelist(object):
def _load_codereview_impl(self, codereview=None, **kwargs):
if codereview:
assert codereview in _CODEREVIEW_IMPLEMENTATIONS
assert codereview in _CODEREVIEW_IMPLEMENTATIONS, (
'codereview {} not in {}'.format(codereview,
_CODEREVIEW_IMPLEMENTATIONS))
cls = _CODEREVIEW_IMPLEMENTATIONS[codereview]
self._codereview = codereview
self._codereview_impl = cls(self, **kwargs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment