Commit 554187a2 authored by Gavin Mak's avatar Gavin Mak Committed by LUCI CQ

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/+/2797935Reviewed-by: 's avatarJosip Sokcevic <sokcevic@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
parent 0642373b
......@@ -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
......
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