Add more exception details in _run_check_function

Bug: 1194603
Change-Id: I4945f815078a681c853e038faecc443762a07bd3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2797935
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
changes/35/2797935/2
Gavin Mak 4 years ago committed by LUCI CQ
parent 0642373b27
commit 554187a21c

@ -1647,11 +1647,11 @@ class PresubmitExecuter(object):
try:
result = eval(function_name + '(*__args)', context)
self._check_result_type(result)
except:
except Exception as e:
if sink:
elapsed_time = time_time() - start_time
sink.report(function_name, rdb_wrapper.STATUS_FAIL, elapsed_time)
raise
raise type(e)('Evaluation of %s failed: %s' % (function_name, e))
if sink:
elapsed_time = time_time() - start_time

Loading…
Cancel
Save