Skip to content

Commit

Permalink
Fix error handling in manif.make_manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeterv committed Jan 5, 2016
1 parent e970245 commit 0881f62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/luarocks/manif.lua
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,11 @@ function manif.make_manifest(repo, deps_mode, remote)
local cache = {}
for luaver in util.lua_versions() do
local vmanifest = { repository = {}, modules = {}, commands = {} }
local dep_handler = function(manifest)
dep_handler = function(manifest)
filter_by_lua_version(manifest, luaver, repo, cache)
end
local ok, err = store_results(results, vmanifest, dep_handler)
ok, err = store_results(results, vmanifest, dep_handler)
if not ok then return nil, err end
save_table(repo, "manifest-"..luaver, vmanifest)
end
end
Expand Down

0 comments on commit 0881f62

Please sign in to comment.