We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e2e217 commit d6f5173Copy full SHA for d6f5173
lua/devdocs/docs.lua
@@ -119,10 +119,15 @@ M.DownloadDocs = function(slug, callback)
119
local downloadLink = M.ConstructDownloadLink(slug)
120
vim.system({
121
'curl',
122
- '-s',
+ '-sS',
123
downloadLink,
124
}, { text = false }, function(res)
125
- assert(res.code == 0, 'Error downloading docs')
+ if res.code ~= 0 then
126
+ vim.schedule(function()
127
+ vim.notify('Error downloading doc for ' .. slug .. ': ' .. res.stderr)
128
+ end)
129
+ return
130
+ end
131
132
'jq',
133
'-c',
0 commit comments