Include host and project in code-owners not enabled error.

Bug: 329231688
Change-Id: I36bb24f167854f40718ec49559d9aaa640fa1a44
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5384365
Auto-Submit: Joanna Wang <jojwang@chromium.org>
Commit-Queue: Joanna Wang <jojwang@chromium.org>
Reviewed-by: Scott Lee <ddoman@chromium.org>
Commit-Queue: Scott Lee <ddoman@chromium.org>
changes/65/5384365/2
Joanna Wang 2 years ago committed by LUCI CQ
parent e5fd0d513c
commit 4d2728b03e

@ -1550,7 +1550,8 @@ def CheckOwnersFormat(input_api, output_api):
return [
output_api.PresubmitError(
'code-owners is not enabled. Ask your host enable it on your gerrit '
f'code-owners is not enabled on {input_api.gerrit.host}/{input_api.gerrit.project}. '
'Ask your host enable it on your gerrit '
'host. Read more about code-owners at '
'https://chromium-review.googlesource.com/'
'plugins/code-owners/Documentation/index.html.')
@ -1570,7 +1571,8 @@ def CheckOwners(input_api, output_api, source_file_filter=None, allow_tbr=True):
return [
output_api.PresubmitError(
'code-owners is not enabled. Ask your host enable it on your gerrit '
f'code-owners is not enabled on {input_api.gerrit.host}/{input_api.gerrit.project}. '
'Ask your host enable it on your gerrit '
'host. Read more about code-owners at '
'https://chromium-review.googlesource.com/'
'plugins/code-owners/Documentation/index.html.')

Loading…
Cancel
Save