Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
1386:9132f16666e4 | 1387:64f18488b275 |
---|---|
25 end | 25 end |
26 | 26 |
27 function load_code(plugin, resource) | 27 function load_code(plugin, resource) |
28 local content, err = load_resource(plugin, resource); | 28 local content, err = load_resource(plugin, resource); |
29 if not content then return content, err; end | 29 if not content then return content, err; end |
30 return loadstring(content, err), err; | 30 return loadstring(content, err); |
31 end | 31 end |
32 | 32 |
33 return _M; | 33 return _M; |