mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-01 05:48:11 +03:00
Add kwargs to specialized error message
https://crrev.com/c/4505697 started accepting show_callstack. Since Msg is used as specialized error message, it also needs to accept show_callstack since CallCommand will pass it. Bug: chromium:1451607 Change-Id: Ib3aee58b41d2419446e71b8e67392daed407714d Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4591539 Commit-Queue: Brian Sheedy <bsheedy@chromium.org> Auto-Submit: Josip Sokcevic <sokcevic@chromium.org> Reviewed-by: Kenneth Russell <kbr@chromium.org>
This commit is contained in:
committed by
Angle LUCI CQ
parent
4500079d34
commit
c7d46eb86e
@@ -233,7 +233,7 @@ def _CheckCodeGeneration(input_api, output_api):
|
||||
class Msg(output_api.PresubmitError):
|
||||
"""Specialized error message"""
|
||||
|
||||
def __init__(self, message):
|
||||
def __init__(self, message, **kwargs):
|
||||
super(output_api.PresubmitError, self).__init__(
|
||||
message,
|
||||
long_text='Please ensure your ANGLE repositiory is synced to tip-of-tree\n'
|
||||
@@ -242,7 +242,8 @@ def _CheckCodeGeneration(input_api, output_api):
|
||||
'If that fails, run scripts/run_code_generation.py to refresh generated hashes.\n'
|
||||
'\n'
|
||||
'If you are building ANGLE inside Chromium you must bootstrap ANGLE\n'
|
||||
'before gclient sync. See the DevSetup documentation for more details.\n')
|
||||
'before gclient sync. See the DevSetup documentation for more details.\n',
|
||||
**kwargs)
|
||||
|
||||
code_gen_path = input_api.os_path.join(input_api.PresubmitLocalPath(),
|
||||
'scripts/run_code_generation.py')
|
||||
|
||||
Reference in New Issue
Block a user