Commit 8676aa92 authored by Anthony Polito's avatar Anthony Polito Committed by LUCI CQ

Give better error message when proc fails to execute.

Change-Id: I9dcbaa6dd287f0a5c2a749cfdf4607bddbf04734
BUG: 1274851
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3307919Reviewed-by: 's avatarJosip Sokcevic <sokcevic@google.com>
Commit-Queue: Anthony Polito <apolito@google.com>
parent 320a1caf
......@@ -202,7 +202,11 @@ def call(*args, **kwargs): # pragma: no cover
print('%s ===Running %s ===' % (datetime.now(), ' '.join(args),))
print('In directory: %s' % cwd)
start_time = time.time()
proc = subprocess.Popen(args, **kwargs)
try:
proc = subprocess.Popen(args, **kwargs)
except:
print('\t%s failed to exectute.' % ' '.join(args))
raise
observers = [
RepeatingTimer(300, _print_pstree),
RepeatingTimer(int(stale_process_duration), _kill_process, [proc])]
......
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