Skip to content

Commit bd22b62

Browse files
committed
fix(mason): add nil check to on_stderr callback in install-pylsp-plugins
1 parent 4e4364c commit bd22b62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/modules/configs/completion/mason.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ M.setup = function()
8383
)
8484
end,
8585
on_stderr = function(_, msg_stream)
86-
vim.notify(msg_stream, vim.log.levels.ERROR, { title = "[lsp] Install Failure" })
86+
if msg_stream then
87+
vim.notify(msg_stream, vim.log.levels.ERROR, { title = "[lsp] Install Failure" })
88+
end
8789
end,
8890
})
8991
:start()

0 commit comments

Comments
 (0)