Commit 6da50398 authored by tandrii's avatar tandrii Committed by Commit bot

bot_update: improve UX when gclient is not configured.

Instead of long stacktrace, explain what went wrong.

R=sergiyb@chromium.org,andybons@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2175343002
parent 8697dfcf
...@@ -78,6 +78,8 @@ class BotUpdateApi(recipe_api.RecipeApi): ...@@ -78,6 +78,8 @@ class BotUpdateApi(recipe_api.RecipeApi):
# We can re-use the gclient spec from the gclient module, since all the # We can re-use the gclient spec from the gclient module, since all the
# data bot_update needs is already configured into the gclient spec. # data bot_update needs is already configured into the gclient spec.
cfg = gclient_config or self.m.gclient.c cfg = gclient_config or self.m.gclient.c
assert cfg is not None, (
'missing gclient_config or forgot api.gclient.set_config(...) before?')
# Used by bot_update to determine if we want to run or not. # Used by bot_update to determine if we want to run or not.
master = self._mastername master = self._mastername
......
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