diff options
-rw-r--r-- | src/lanes.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lanes.lua b/src/lanes.lua index 95d3bd3..92a8703 100644 --- a/src/lanes.lua +++ b/src/lanes.lua | |||
@@ -194,9 +194,9 @@ local params_checker = function(user_settings_) | |||
194 | error "Bad argument #1 to lanes.configure(), should be a table" | 194 | error "Bad argument #1 to lanes.configure(), should be a table" |
195 | end | 195 | end |
196 | -- any setting unknown to Lanes raises an error | 196 | -- any setting unknown to Lanes raises an error |
197 | for _setting, _ in pairs(user_settings_) do | 197 | for _setting, _value in pairs(user_settings_) do |
198 | if not param_checkers[_setting] then | 198 | if not param_checkers[_setting] then |
199 | error("Unknown parameter '" .. _setting .. "' in configure options") | 199 | error("Unknown setting [" .. tostring(_setting) .. "] = " .. tostring(_value)) |
200 | end | 200 | end |
201 | end | 201 | end |
202 | -- any setting not present in the provided parameters takes the default value | 202 | -- any setting not present in the provided parameters takes the default value |