Commit 32894e2b authored by ichikawa's avatar ichikawa Committed by Commit bot

Improve error message of //tools/licenses.py.

Current error message doesn't tell me which directory causes the error.

Review-Url: https://codereview.chromium.org/2802863004
Cr-Commit-Position: refs/heads/master@{#462791}
parent 465fa2f3
......@@ -358,7 +358,7 @@ def ParseDir(path, root, require_license_file=True, optional_keys=None):
readme_path = os.path.join(root, path, 'README.chromium')
if not os.path.exists(readme_path):
raise LicenseError("missing README.chromium or licenses.py "
"SPECIAL_CASES entry")
"SPECIAL_CASES entry in %s" % path)
for line in open(readme_path):
line = line.strip()
......
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