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 authored and squeek502 committed Jul 10, 2024
1 parent 262d5f7 commit 938eb53
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 938eb53

Please sign in to comment.