Sync download_tools.py with changes in gclient_utils module.

Bug: none
Change-Id: I3eb0d995527742245639ea7f9bc59113184ea428
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/147861
Reviewed-by: Oleh Prypin <oprypin@webrtc.org>
Commit-Queue: Sergey Silkin <ssilkin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28742}
This commit is contained in:
Sergey Silkin 2019-08-02 09:24:48 +02:00 committed by Commit Bot
parent 9160b627d7
commit 916fda588e

View File

@ -49,7 +49,8 @@ def main(directories):
# Perform download similar to how gclient hooks execute.
try:
gclient_utils.CheckCallAndFilterAndHeader(cmd, cwd=SRC_DIR, always=True)
gclient_utils.CheckCallAndFilter(
cmd, cwd=SRC_DIR, always_show_header=True)
except (gclient_utils.Error, subprocess2.CalledProcessError) as e:
print 'Error: %s' % str(e)
return 2