Skip to content

Commit

Permalink
chore: better error msg for unsupported browser
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmanila committed Jan 28, 2023
1 parent 10c7221 commit 322f438
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lua/telescope/_extensions/bookmarks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,12 @@ local function bookmarks(opts)

local selected_browser = config.selected_browser
if not title[selected_browser] then
local supported = table.concat(vim.tbl_keys(title), ", ")
error(
string.format("Unsupported browser: %s (%s)", selected_browser, supported)
string.format(
"Unsupported browser: %s (supported: %s)",
selected_browser,
table.concat(vim.tbl_keys(title), ", ")
)
)
end

Expand Down

0 comments on commit 322f438

Please sign in to comment.