2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 01:32:12 +00:00

Use feature name for better error output.

This commit is contained in:
Aaron Boman
2014-10-06 12:31:22 -05:00
parent ba1530c3a2
commit 3a7d9eed87

View File

@@ -442,7 +442,7 @@ def validate_value_string (f, value_string):
# An empty value is allowed for optional features
if not values[0] in f.values() and \
(values[0] or not f.optional()):
raise InvalidValue ("'%s' is not a known value of feature '%s'\nlegal values: '%s'" % (values [0], feature, f.values()))
raise InvalidValue ("'%s' is not a known value of feature '%s'\nlegal values: '%s'" % (values [0], f.name(), f.values()))
for v in values [1:]:
# this will validate any subfeature values in value-string