projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
230b844
)
Fix softreq, so it reports when no suitable MD5 library is found
author
Matthew Wild
<mwild1@gmail.com>
Tue, 25 Nov 2008 01:56:20 +0000
(
01:56
+0000)
committer
Matthew Wild
<mwild1@gmail.com>
Tue, 25 Nov 2008 01:56:20 +0000
(
01:56
+0000)
util/hashes.lua
patch
|
blob
|
history
diff --git
a/util/hashes.lua
b/util/hashes.lua
index 5ed9d3acfd73bf7f17bd24379158556eb12220ef..2fd0fbd87dda16aee524adb29ba657c829524bca 100644
(file)
--- a/
util/hashes.lua
+++ b/
util/hashes.lua
@@
-1,5
+1,5
@@
-local softreq = function (...)
return select(2, pcall(require, ...));
end
+local softreq = function (...)
local ok, lib = pcall(require, ...); if ok then return lib; else return nil; end
end
local error = error;
module "hashes"