From 938eb5333c7a0b26bc8d6e6b2a1459707cf4b7cf Mon Sep 17 00:00:00 2001 From: Sinister Rectus Date: Wed, 10 Jul 2024 10:24:34 -0400 Subject: [PATCH] Fixes build forcing during Lua load error --- src/lua/luvibundle.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lua/luvibundle.lua b/src/lua/luvibundle.lua index 46ca9be8..fb13726c 100644 --- a/src/lua/luvibundle.lua +++ b/src/lua/luvibundle.lua @@ -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