util.pluginloader: Append "@" to chunk names (fixes weird formatting in plugin tracebacks)
authorWaqas Hussain <waqas20@gmail.com>
Sun, 28 Jun 2009 22:29:17 +0500
changeset 1441 9c6c7aa5dc60
parent 1440 d3117a6ad1bf
child 1443 c727348c7e63
child 1444 19598161ae22
util.pluginloader: Append "@" to chunk names (fixes weird formatting in plugin tracebacks)
util/pluginloader.lua
--- a/util/pluginloader.lua	Sun Jun 28 22:23:06 2009 +0500
+++ b/util/pluginloader.lua	Sun Jun 28 22:29:17 2009 +0500
@@ -27,7 +27,7 @@
 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;