Skip to content

Commit

Permalink
Update checkdeps trailing slash failure message
Browse files Browse the repository at this point in the history
Update the failure message to indicate that the trailing slash should be
removed.

Bug: 1084817
Change-Id: Id4ed3533531b45c1762d66068700f93fee6db9a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2650169
Auto-Submit: Theresa  <twellington@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/master@{#847247}
  • Loading branch information
Theresa Sullivan authored and Chromium LUCI CQ committed Jan 26, 2021
1 parent 1e9a92c commit d2671af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildtools/checkdeps/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def ParseRuleString(rule_string, source):
# Ban them.
if rule_string[-1] == '/':
raise Exception(
'The rule string "%s" ends with a "/" which is not allowed' %
rule_string)
'The rule string "%s" ends with a "/" which is not allowed.'
' Please remove the trailing "/".' % rule_string)

return rule_string[0], rule_string[1:]

Expand Down

0 comments on commit d2671af

Please sign in to comment.