Software /
code /
prosody
Diff
util/pluginloader.lua @ 1387:64f18488b275
util.pluginloader: Remove unnecessary return value suppressing the real load error
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 22 Jun 2009 21:56:52 +0100 |
parent | 1359:015d624a2a71 |
child | 1441:9c6c7aa5dc60 |
line wrap: on
line diff
--- a/util/pluginloader.lua Mon Jun 22 21:54:34 2009 +0100 +++ b/util/pluginloader.lua Mon Jun 22 21:56:52 2009 +0100 @@ -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), err; + return loadstring(content, err); end return _M;