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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user