Give better error description in check_valid_gerrit_projects.py
This error message was confusing, make it clearer. Change-Id: Ia930483a8b36f75610a5de711b22b553410d5ff8
This commit is contained in:
parent
59e0d16bc3
commit
4a0a4bb766
@ -129,7 +129,8 @@ def main():
|
||||
# sort of job-description (e.g. "foo-devstack-bar") or
|
||||
# a url ("foo.openstack.org")
|
||||
if re.search(r'(?<![-.])\b%s\b' % word, description):
|
||||
print("ERROR: %s: should be %s" %
|
||||
print("ERROR: description '%s': contains wrong word, "
|
||||
"it should be '%s'" %
|
||||
(description, should_be))
|
||||
found_errors += 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user