Better error message when someone has a malformed meson_options.txt. Closes #160.

pull/159/head
Jussi Pakkanen 10 years ago
parent 9107bc35d7
commit a9b59573bc
  1. 4
      optinterpreter.py

@ -124,9 +124,7 @@ class OptionInterpreter:
raise e
def reduce_single(self, arg):
if isinstance(arg, mparser.IdNode):
return self.get_variable(arg.value)
elif isinstance(arg, str):
if isinstance(arg, str):
return arg
elif isinstance(arg, mparser.StringNode):
return arg.value

Loading…
Cancel
Save