aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2018-06-02 16:13:24 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-06-03 21:28:47 +0300
commitd777ffc04040fa2823431471cee8fcdb6f13e95e (patch)
treeb3d7af568fc1e3d574922552107cfb46ebf3b3fa
parent9e7b0dd70430cf0aa71869c46342cb908e99274f (diff)
downloadmeson-d777ffc04040fa2823431471cee8fcdb6f13e95e.zip
meson-d777ffc04040fa2823431471cee8fcdb6f13e95e.tar.gz
meson-d777ffc04040fa2823431471cee8fcdb6f13e95e.tar.bz2
Fix #mesondefine token error message formatting
-rw-r--r--mesonbuild/mesonlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py
index d700041..9f1da3e 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)