fix: Error properly when using invalid layout strategy
This commit is contained in:
@@ -172,7 +172,7 @@ function Picker:get_window_options(max_columns, max_lines, prompt_title)
|
||||
local getter = layout_strategies[layout_strategy]
|
||||
|
||||
if not getter then
|
||||
error("Not a valid layout strategy: ", layout_strategy)
|
||||
error("Not a valid layout strategy: " .. layout_strategy)
|
||||
end
|
||||
|
||||
return getter(self, max_columns, max_lines, prompt_title)
|
||||
|
||||
Reference in New Issue
Block a user