aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/core/spawn.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/core/spawn.lua')
-rw-r--r--lua/nvim-lsp-installer/core/spawn.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/core/spawn.lua b/lua/nvim-lsp-installer/core/spawn.lua
index 17e2563f..13e05a5b 100644
--- a/lua/nvim-lsp-installer/core/spawn.lua
+++ b/lua/nvim-lsp-installer/core/spawn.lua
@@ -3,6 +3,7 @@ local Result = require "nvim-lsp-installer.core.result"
local process = require "nvim-lsp-installer.core.process"
local platform = require "nvim-lsp-installer.core.platform"
local functional = require "nvim-lsp-installer.core.functional"
+local log = require "nvim-lsp-installer.log"
---@alias JobSpawn table<string, async fun(opts: JobSpawnOpts): Result>
---@type JobSpawn
@@ -88,6 +89,7 @@ setmetatable(spawn, {
local cmd = self._aliases[normalized_cmd] or normalized_cmd
if (env and env.PATH) == nil and args.check_executable ~= false and not is_executable(cmd) then
+ log.fmt_debug("%s is not executable", cmd)
return Failure({
stderr = ("%s is not executable"):format(cmd),
}, cmd)