zetuptoolz: print out more context in case of parse_requirements error

This commit is contained in:
Zooko 2015-02-24 18:11:30 +00:00
parent 6d84cdd35d
commit e9e63c5e72

View File

@ -2460,7 +2460,7 @@ def parse_requirements(strs):
for line in lines:
match = DISTRO(line)
if not match:
raise ValueError("Missing distribution spec", line)
raise ValueError("Missing distribution spec", line, strs)
project_name = match.group(1)
p = match.end()
extras = []