Fix #mesondefine token error message formatting

pull/2278/merge
Marvin Scholz 7 years ago committed by Jussi Pakkanen
parent 9e7b0dd704
commit d777ffc040
  1. 2
      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)

Loading…
Cancel
Save