From 6761878ce38b4dfe00c2f6748569c922a4838ee1 Mon Sep 17 00:00:00 2001 From: Lukas Kropatschek Date: Wed, 9 Mar 2016 18:46:37 +0100 Subject: [PATCH] fix missing line number and func name --- mist.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mist.lua b/mist.lua index c40c3d6..da3a90a 100644 --- a/mist.lua +++ b/mist.lua @@ -6415,10 +6415,12 @@ do -- mist.Logger scope text = text:gsub('$' .. index, value) end end + local fName = nil + local cLine = nil if debug then local dInfo = debug.getinfo(3) - local fName = dInfo.name - local cLine = dInfo.currentline + fName = dInfo.name + cLine = dInfo.currentline -- local fsrc = dinfo.short_src --local fLine = dInfo.linedefined end