aboutsummaryrefslogtreecommitdiff
path: root/optinterpreter.py
diff options
context:
space:
mode:
authorjpakkane <jpakkane@gmail.com>2015-06-19 13:10:07 +0300
committerjpakkane <jpakkane@gmail.com>2015-06-19 13:10:07 +0300
commitf15eb466fb5ab0713b1614bdc973d242bdb4b4ad (patch)
tree906822ecdb2b7b441f8e5268329046b0ee3e1def /optinterpreter.py
parent74b0fad8f11455f79c142baf95fa0ebb8ce86c62 (diff)
parentbc865ab9436a7274a08f08cfa98d91340cfe419a (diff)
downloadmeson-f15eb466fb5ab0713b1614bdc973d242bdb4b4ad.zip
meson-f15eb466fb5ab0713b1614bdc973d242bdb4b4ad.tar.gz
meson-f15eb466fb5ab0713b1614bdc973d242bdb4b4ad.tar.bz2
Merge pull request #162 from mesonbuild/lint_errors
Fix some bugs when linting code
Diffstat (limited to 'optinterpreter.py')
-rw-r--r--optinterpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/optinterpreter.py b/optinterpreter.py
index 668efcd..312427e 100644
--- a/optinterpreter.py
+++ b/optinterpreter.py
@@ -61,7 +61,7 @@ class UserBooleanOption(UserOption):
def set_value(self, newvalue):
if not isinstance(newvalue, bool):
- raise OptionException('Value "%s" for boolean option "%s" is not a boolean.' % (valuestring, self.name))
+ raise OptionException('Value "%s" for boolean option "%s" is not a boolean.' % (str(newvalue), self.name))
self.value = newvalue
def parse_string(self, valuestring):