From b184816213daee694e7e464ea124b595ab190dcb Mon Sep 17 00:00:00 2001 From: Aaron Boman Date: Wed, 5 Nov 2014 14:56:45 -0600 Subject: [PATCH] Print the actual values rather than a pointer to a function. --- src/build/feature.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/build/feature.py b/src/build/feature.py index 386e49931..827dae340 100644 --- a/src/build/feature.py +++ b/src/build/feature.py @@ -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)