Skip to content

Commit

Permalink
fix: add global argument to entry point call
Browse files Browse the repository at this point in the history
fix: add global argument to entry point call
  • Loading branch information
Tsukina-7mochi committed Nov 24, 2023
2 parents 4536d06 + ac82848 commit 1ebfa30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/template.lua
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ local errorHandler = function(err)
return message
end

local result = table.pack(xpcall(require, errorHandler, __NEBLUA_ENTRY__))
local result = table.pack(xpcall(require, errorHandler, __NEBLUA_ENTRY__, ...))
local success = result[1]
-- print error to stdout and re-throw
if not success then
Expand Down

0 comments on commit 1ebfa30

Please sign in to comment.