# HG changeset patch # User Matthew Wild # Date 1227578180 0 # Node ID 7ae008771391b00762def5d9732dfd19364cf3fe # Parent 11f176cae9dafd2e7e51d31967f7a75671360b98 Fix softreq, so it reports when no suitable MD5 library is found diff -r 11f176cae9da -r 7ae008771391 util/hashes.lua --- a/util/hashes.lua Tue Nov 25 01:55:01 2008 +0000 +++ b/util/hashes.lua Tue Nov 25 01:56:20 2008 +0000 @@ -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"