Changeset

1441:9c6c7aa5dc60

util.pluginloader: Append "@" to chunk names (fixes weird formatting in plugin tracebacks)
author Waqas Hussain <waqas20@gmail.com>
date Sun, 28 Jun 2009 22:29:17 +0500
parents 1440:d3117a6ad1bf
children 1443:c727348c7e63 1444:19598161ae22
files util/pluginloader.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;