diff options
| author | William Boman <william@redwill.se> | 2022-06-08 01:36:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-08 01:36:47 +0200 |
| commit | 2b2d2141394f95a28cf5dfed922ebecf123d72b1 (patch) | |
| tree | e4962a1f3e45b9dbd619431748aca916caa70dba /lua/nvim-lsp-installer/core/spawn.lua | |
| parent | feat: add marksman (#760) (diff) | |
| download | mason-2b2d2141394f95a28cf5dfed922ebecf123d72b1.tar mason-2b2d2141394f95a28cf5dfed922ebecf123d72b1.tar.gz mason-2b2d2141394f95a28cf5dfed922ebecf123d72b1.tar.bz2 mason-2b2d2141394f95a28cf5dfed922ebecf123d72b1.tar.lz mason-2b2d2141394f95a28cf5dfed922ebecf123d72b1.tar.xz mason-2b2d2141394f95a28cf5dfed922ebecf123d72b1.tar.zst mason-2b2d2141394f95a28cf5dfed922ebecf123d72b1.zip | |
chore: update some logging (#761)
* chore: update some logging
* docs: add section about known errors
Diffstat (limited to 'lua/nvim-lsp-installer/core/spawn.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/core/spawn.lua | 2 |
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) |
