]> git.lizzy.rs Git - metalua.git/commitdiff
minor variable renamings
authorFabien Fleutot <fabien@MacFabien.home>
Thu, 25 Dec 2008 13:33:56 +0000 (14:33 +0100)
committerFabien Fleutot <fabien@MacFabien.home>
Thu, 25 Dec 2008 13:33:56 +0000 (14:33 +0100)
src/compiler/metalua.mlua

index 934243504d32a873399634bfe7a1869fa822445e..8fe2c78e017d3bc310764171bc43479ebb9c228e 100644 (file)
@@ -19,11 +19,14 @@ function spring_pcall (f, arg, name)
    local cmd = string.format (pattern, f, arg, name)
    --print ("Running the following process: " .. cmd)
    local fd = io.popen (cmd)
-   local data = fd:read '*a'
+   local ast_src = fd:read '*a'
    fd:close()
    --print (data)
-   local ast_builder, msg = lua_loadstring(data)
-   if not ast_builder then error ("can't compile data: "..msg) end
+   local ast_builder, msg = lua_loadstring(ast_src)
+   if not ast_builder then 
+      error ("can't compile data: "..msg) 
+      print (ast_src)
+   end
    local ast = ast_builder()
    return true, ast
 end