From 28782075b4b9a58d54005771b91205e9e06eb723 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 28 Jun 2009 22:29:17 +0500 Subject: [PATCH] util.pluginloader: Append "@" to chunk names (fixes weird formatting in plugin tracebacks) --- util/pluginloader.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/pluginloader.lua b/util/pluginloader.lua index 86075c90..861fe6a9 100644 --- a/util/pluginloader.lua +++ b/util/pluginloader.lua @@ -27,7 +27,7 @@ end function load_code(plugin, resource) local content, err = load_resource(plugin, resource); if not content then return content, err; end - return loadstring(content, err); + return loadstring(content, "@"..err); end return _M; -- 2.30.2