Skip to content

Commit

Permalink
fix: ignore malformed rocks
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Mar 2, 2024
1 parent 7e9cf5d commit 5407b73
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/rocks/operations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,7 @@ operations.sync = function(user_rocks)
for _, key in ipairs(to_install) do
nio.scheduler()
if not user_rocks[key].version then
local message = ("Could not parse rock: %s"):format(vim.inspect(user_rocks[key]))
log.error(message)
report_error(message)
-- TODO(vhyrro): Maybe add a rocks option that warns on malformed rocks?
goto skip_install
end
progress_handle:report({
Expand Down

0 comments on commit 5407b73

Please sign in to comment.