Commit 73c31cd9 authored by nodir@chromium.org's avatar nodir@chromium.org

trychange.py hotfix

Should use e.message instead of e.reason, where e is an Exception

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@270473 0039d316-1c4b-4281-b951-d872f2087c98
parent 6a9ead26
......@@ -771,7 +771,7 @@ def _SendChangeGerrit(bot_spec, options):
labels={'Tryjob-Request': 1})
except gerrit_util.GerritError, e:
if e.http_status == 400:
raise Error(e.reason)
raise Error(e.message)
else:
raise
......
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