From d2671af87fa0f33b91f7d8f69f72b49b02ab8b3b Mon Sep 17 00:00:00 2001 From: Theresa Sullivan Date: Tue, 26 Jan 2021 18:55:37 +0000 Subject: [PATCH] Update checkdeps trailing slash failure message 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 Reviewed-by: Avi Drissman Reviewed-by: Dirk Pranke Commit-Queue: Dirk Pranke Cr-Commit-Position: refs/heads/master@{#847247} --- buildtools/checkdeps/rules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildtools/checkdeps/rules.py b/buildtools/checkdeps/rules.py index dd3884db22323e..bafcf66af73850 100644 --- a/buildtools/checkdeps/rules.py +++ b/buildtools/checkdeps/rules.py @@ -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:]