summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luaotfload-configuration.lua7
1 files changed, 6 insertions, 1 deletions
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,