diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index d7000410c..9f1da3e02 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -604,7 +604,7 @@ def do_replacement(regex, line, format, confdata): def do_mesondefine(line, confdata): arr = line.split() if len(arr) != 2: - raise MesonException('#mesondefine does not contain exactly two tokens: %s', line.strip()) + raise MesonException('#mesondefine does not contain exactly two tokens: %s' % line.strip()) varname = arr[1] try: (v, desc) = confdata.get(varname)