From 787c7c5a6ce4ac6ba19890faf1afa067ea167104 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 9 Jan 2018 16:30:29 -0800 Subject: Propagating filename --- nomsu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nomsu.lua') diff --git a/nomsu.lua b/nomsu.lua index 1ae7349..2900590 100644 --- a/nomsu.lua +++ b/nomsu.lua @@ -533,7 +533,7 @@ do local tree = self:parse(src, filename) self:assert(tree, "Failed to parse: " .. tostring(src)) self:assert(tree.type == "File", "Attempt to run non-file: " .. tostring(tree.type)) - local lua = self:tree_to_lua(tree) + local lua = self:tree_to_lua(tree, filename) local lua_code = lua.statements or (lua.expr .. ";") lua_code = "-- File: " .. tostring(filename) .. "\n" .. lua_code local ret = self:run_lua(lua_code, vars) -- cgit v1.2.3