Skip to content

Commit

Permalink
Point to available adapters if config references missing adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
mfussenegger committed Jun 1, 2024
1 parent c187677 commit 5823403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -603,9 +603,9 @@ function M.run(config, opts)
)
elseif adapter == nil then
notify(string.format(
'The selected configuration references adapter `%s`, but dap.adapters.%s is undefined',
'Config references missing adapter `%s`. Available are: %s',
config.type,
config.type
table.concat(vim.tbl_keys(M.adapters), ", ")
), vim.log.levels.ERROR)
else
notify(string.format(
Expand Down

0 comments on commit 5823403

Please sign in to comment.