Bugfix: The job might not return JSON data, so we don't need to throw

here
This commit is contained in:
Harrison Cramer
2023-08-09 17:30:36 -04:00
parent 6ab8cfdc55
commit 3d3bb764ba

View File

@@ -30,8 +30,6 @@ M.run_job = function(endpoint, method, body, callback)
local message = string.format("%s: %s", data.message, data.details) local message = string.format("%s: %s", data.message, data.details)
vim.notify(message, vim.log.levels.ERROR) vim.notify(message, vim.log.levels.ERROR)
end end
else
vim.notify("Could not parse command output!", vim.log.levels.ERROR)
end end
end, 0) end, 0)
end, end,