Software /
code /
prosody
Diff
util/pluginloader.lua @ 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 |
parent | 1387:64f18488b275 |
child | 1522:569d58d21612 |
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;