From 13799ebd44c93bb67cd10a362a8755175676bb59 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 13 Jul 2014 12:30:51 +0200 Subject: [conf] warn about unknown variables --- src/luaotfload-configuration.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/luaotfload-configuration.lua') diff --git a/src/luaotfload-configuration.lua b/src/luaotfload-configuration.lua index 69f4069..e302ca6 100644 --- a/src/luaotfload-configuration.lua +++ b/src/luaotfload-configuration.lua @@ -446,7 +446,12 @@ local process_options = function (opts) for var, val in next, vars do local vspec = spec[var] local t_val = type (val) - if t_val ~= vspec.in_t then + if not vspec then + logreport ("both", 0, "conf", + "Section %d (%s): invalid configuration variable %q (%q); ignoring.", + i, title, + var, tostring (val)) + elseif t_val ~= vspec.in_t then logreport ("both", 2, "conf", "Section %d (%s): type mismatch of input value %q (%q, %s != %s); ignoring.", i, title, -- cgit v1.2.3