Skip to content

Commit

Permalink
Handle nil cmd in start_or_attach error handling
Browse files Browse the repository at this point in the history
Closes #703
  • Loading branch information
mfussenegger committed Dec 31, 2024
1 parent 8f14aa1 commit 17867da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/jdtls/setup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ function M.start_or_attach(config, opts, start_opts)
assert(
config.cmd and type(config.cmd) == 'table',
'Config must have a `cmd` property and that must be a table. Got: '
.. table.concat(config.cmd, ' ')
.. table.concat(config.cmd or {'nil'}, ' ')
)
config.name = 'jdtls'
local on_attach = config.on_attach
Expand Down

0 comments on commit 17867da

Please sign in to comment.