Skip to content

Commit

Permalink
refactor(log): We now log when a command could not be executed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeioth committed May 20, 2024
1 parent 64ed731 commit afea99e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/null-ls/sources.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ M.is_executable = function(source)
if source.generator.opts.command then
if vim.fn.executable(source.generator.opts.command) == 0 then
-- if the command is not executable
log:error("failed to execute command: " .. source.generator.opts.command)
return false
end
end
Expand Down

0 comments on commit afea99e

Please sign in to comment.