aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/moduleapi.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index 8fa1b672..2b3e36c1 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -272,6 +272,8 @@ function api:get_option_period(name, default_value)
self:log("error", "Config option '%s' not understood, expecting a period (e.g. \"2 days\")", name);
end
return ret;
+ elseif value ~= nil then
+ self:log("error", "Config option '%s' expects a number or a period description string (e.g. \"3 hours\"), not %s", name, type(value));
end
end