aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-28 22:29:17 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-28 22:29:17 +0500
commit7422c11cfa3619fe768daf8e8e076ec6ef35823f (patch)
tree5c6eb860d4f2611af2f90e5f3b3c48e6561274a1
parent2249117f21b5a34cd8aaab0c55939fa0224e53a1 (diff)
downloadprosody-7422c11cfa3619fe768daf8e8e076ec6ef35823f.tar.gz
prosody-7422c11cfa3619fe768daf8e8e076ec6ef35823f.zip
util.pluginloader: Append "@" to chunk names (fixes weird formatting in plugin tracebacks)
-rw-r--r--util/pluginloader.lua2
1 files changed, 1 insertions, 1 deletions
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;