Skip to content

Commit

Permalink
Make tracebacks show the relevant files
Browse files Browse the repository at this point in the history
  • Loading branch information
luk3yx committed Mar 10, 2024
1 parent bb72653 commit 54646e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preprocessor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ local function _load(path, line, data, t)
data = compile(data)
end

local l, err = loadstring(data)
local l, err = loadstring(data, "@" .. path)

if not l then
local err_line = tonumber(err:match(":(%d+):"))
Expand Down

0 comments on commit 54646e8

Please sign in to comment.