2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 12:42:11 +00:00

Print the actual values rather than a pointer to a function.

This commit is contained in:
Aaron Boman
2014-11-05 14:56:45 -06:00
committed by Vladimir Prus
parent 64d0521572
commit b184816213

View File

@@ -196,12 +196,12 @@ def set_default (feature, value):
bad_attribute = "free"
elif attributes & Feature.OPTIONAL:
bad_attribute = "optional"
if bad_attribute:
raise InvalidValue ("%s property %s cannot have a default" % (bad_attribute, feature.name()))
if not value in f.values():
raise InvalidValue ("The specified default value, '%s' is invalid.\n" % value + "allowed values are: %s" % values)
raise InvalidValue ("The specified default value, '%s' is invalid.\n" % value + "allowed values are: %s" % f.values())
f.set_default(value)