aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-06-20 09:10:42 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-06-20 09:10:42 +0200
commit0f34fabd90b66c96ac309a68a019d584b6c8e917 (patch)
tree212a52a2879eaccb9faf5fde1ae5e8aa6cb09d6b /src
parentf69524e8bfb862a470ca8bdd0c2d6df9cee8ccce (diff)
downloadlanes-0f34fabd90b66c96ac309a68a019d584b6c8e917.tar.gz
lanes-0f34fabd90b66c96ac309a68a019d584b6c8e917.tar.bz2
lanes-0f34fabd90b66c96ac309a68a019d584b6c8e917.zip
Better error message on unknown configuration setting
Diffstat (limited to 'src')
-rw-r--r--src/lanes.lua4
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