From 2b2d2141394f95a28cf5dfed922ebecf123d72b1 Mon Sep 17 00:00:00 2001 From: William Boman Date: Wed, 8 Jun 2022 01:36:47 +0200 Subject: chore: update some logging (#761) * chore: update some logging * docs: add section about known errors --- lua/nvim-lsp-installer/core/spawn.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lua/nvim-lsp-installer/core/spawn.lua') 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 ---@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) -- cgit v1.2.3-70-g09d2