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
changes/01/332501/1
nodir@chromium.org 12 years ago
parent 6a9ead263f
commit 73c31cd9d0

@ -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

Loading…
Cancel
Save