# HG changeset patch # User Kim Alvefur # Date 1689534144 -7200 # Node ID c563da1694bf3ce448a2341941b72669abe8362c # Parent 7435a9341bb3ad777313e1335c6191b984ea0a1a core.moduleapi: Log error for unexpected types (booleans?) set as periods diff -r 7435a9341bb3 -r c563da1694bf core/moduleapi.lua --- a/core/moduleapi.lua Sun Jul 16 21:01:31 2023 +0200 +++ b/core/moduleapi.lua Sun Jul 16 21:02:24 2023 +0200 @@ -272,6 +272,8 @@ 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