Skip to content

Commit

Permalink
fix: fail silently if populating the rocks cache fails at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Jun 11, 2024
1 parent 2de4f8d commit 3fb4a06
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plugin/rocks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ if not config.lazy then
log.trace("Populating caches")
nio.run(function()
local cache = require("rocks.cache")
nio.gather({
cache.populate_cached_rocks,
cache.populate_removable_rock_cache,
})
pcall(function()
nio.gather({
cache.populate_cached_rocks,
cache.populate_removable_rock_cache,
})
end)
end)
end

Expand Down

0 comments on commit 3fb4a06

Please sign in to comment.