From a9b59573bcb81697d27cbcad4be35b4a0a871b1b Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Thu, 18 Jun 2015 21:24:06 +0300 Subject: [PATCH] Better error message when someone has a malformed meson_options.txt. Closes #160. --- optinterpreter.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/optinterpreter.py b/optinterpreter.py index 18a84adc5..6d170e829 100644 --- a/optinterpreter.py +++ b/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