aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/installers/context.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-10-01 22:47:59 +0200
committerGitHub <noreply@github.com>2021-10-01 22:47:59 +0200
commit8212fc21b6a3c0000b1a5fb4c056c189c6fca212 (patch)
tree227a5b8291b6f22184ab4bcf5e18448802c6d296 /lua/nvim-lsp-installer/installers/context.lua
parentstylua and some cleanup (diff)
downloadmason-8212fc21b6a3c0000b1a5fb4c056c189c6fca212.tar
mason-8212fc21b6a3c0000b1a5fb4c056c189c6fca212.tar.gz
mason-8212fc21b6a3c0000b1a5fb4c056c189c6fca212.tar.bz2
mason-8212fc21b6a3c0000b1a5fb4c056c189c6fca212.tar.lz
mason-8212fc21b6a3c0000b1a5fb4c056c189c6fca212.tar.xz
mason-8212fc21b6a3c0000b1a5fb4c056c189c6fca212.tar.zst
mason-8212fc21b6a3c0000b1a5fb4c056c189c6fca212.zip
fix newlines in stdout/stderr calls, more robust error handling (#114)
Diffstat (limited to 'lua/nvim-lsp-installer/installers/context.lua')
-rw-r--r--lua/nvim-lsp-installer/installers/context.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-lsp-installer/installers/context.lua b/lua/nvim-lsp-installer/installers/context.lua
index fba6683e..2f56e25c 100644
--- a/lua/nvim-lsp-installer/installers/context.lua
+++ b/lua/nvim-lsp-installer/installers/context.lua
@@ -52,12 +52,12 @@ function M.github_release_file(repo, file)
context.github_release_file = get_download_url(context.requested_server_version)
callback(true)
else
- context.stdio_sink.stdout "Fetching latest release version from GitHub API..."
+ context.stdio_sink.stdout "Fetching latest release version from GitHub API...\n"
fetch(
("https://api.github.com/repos/%s/releases/latest"):format(repo),
vim.schedule_wrap(function(err, response)
if err then
- context.stdio_sink.stderr "Failed to fetch latest release version from GitHub API."
+ context.stdio_sink.stderr "Failed to fetch latest release version from GitHub API.\n"
return callback(false)
else
local version = Data.json_decode(response).tag_name