summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index e98b5dd..b6cb1e9 100644
--- a/init.lua
+++ b/init.lua
@@ -65,8 +65,11 @@ end
function intllib.Getter(modname)
+ local info = debug and debug.getinfo and debug.getinfo(2)
+ local loc = info and info.short_src..":"..info.currentline
minetest.log("deprecated", "intllib.Getter is deprecated."
- .."Please use intllib.make_gettext_pair instead.")
+ .." Please use intllib.make_gettext_pair instead."
+ ..(info and " (called from "..loc..")" or "")
return Getter(modname)
end