Skip to content

Commit

Permalink
Fixes build forcing during Lua load error
Browse files Browse the repository at this point in the history
  • Loading branch information
SinisterRectus committed Jul 10, 2024
1 parent 262d5f7 commit d3f578d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lua/luvibundle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ local function buildBundle(options, bundle)

if compile and isLua and name:lower() ~= 'package.lua' then
local fn, err = load(ctx, child)
if not fn and not options.force then
error(err)
else
if fn then
ctx = string.dump(fn, options.strip)
elseif not options.force then
error(err)
end
end

Expand Down

0 comments on commit d3f578d

Please sign in to comment.