Commit da14b02a authored by Eric Lawrence [MSFT]'s avatar Eric Lawrence [MSFT] Committed by Commit Bot

Fix syntax error in policy presubmit

The error string was missing the format specifier (% vs %s).

Bug: 1139306
Change-Id: I66ffb8ed02e251107879f3384ab12f34478984c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2535995Reviewed-by: default avatarJulian Pastarmov <pastarmovj@chromium.org>
Commit-Queue: Julian Pastarmov <pastarmovj@chromium.org>
Auto-Submit: Eric Lawrence [MSFT] <ericlaw@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#827233}
parent d223cacf
......@@ -1559,7 +1559,7 @@ class PolicyTemplateChecker(object):
# TODO(crbug.com/1139306): This item check should apply to all policies
# instead of just new ones.
if self._NeedsItems(new_policy) and new_policy.get('items', None) == None:
self._Error(('Missing items field for policy %') % (new_policy_name))
self._Error(('Missing items field for policy %s') % (new_policy_name))
def _LeadingWhitespace(self, line):
match = LEADING_WHITESPACE.match(line)
......
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