aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lanes.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lanes.lua b/src/lanes.lua
index 15908fa..bc47453 100644
--- a/src/lanes.lua
+++ b/src/lanes.lua
@@ -115,6 +115,12 @@ lanes.configure = function( settings_)
115 if type( settings_) ~= "table" then 115 if type( settings_) ~= "table" then
116 error "Bad parameter #1 to lanes.configure(), should be a table" 116 error "Bad parameter #1 to lanes.configure(), should be a table"
117 end 117 end
118 -- any setting unknown to Lanes raises an error
119 for setting, _ in pairs( settings_) do
120 if not param_checkers[setting] then
121 error( "Unknown parameter '" .. setting .. "' in configure options")
122 end
123 end
118 -- any setting not present in the provided parameters takes the default value 124 -- any setting not present in the provided parameters takes the default value
119 for key, checker in pairs( param_checkers) do 125 for key, checker in pairs( param_checkers) do
120 local my_param = settings_[key] 126 local my_param = settings_[key]