diff options
author | Thijs Alkemade <me@thijsalkema.de> | 2016-03-10 10:13:57 +0100 |
---|---|---|
committer | Thijs Alkemade <me@thijsalkema.de> | 2016-03-10 10:13:57 +0100 |
commit | bc0ce12e970104cda92fe0a8debf00ebab81b3da (patch) | |
tree | 5a851ba5708f5230c91ab7b15929bd58d5a363b1 | |
parent | 0d16907ff389fad3fd9135f1f84c4805b5e19687 (diff) | |
download | prosody-bc0ce12e970104cda92fe0a8debf00ebab81b3da.tar.gz prosody-bc0ce12e970104cda92fe0a8debf00ebab81b3da.zip |
util.dependencies: Show the full error when a symbol is not found (i.e., when running Prosody with the wrong version of Lua).
-rw-r--r-- | util/dependencies.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/dependencies.lua b/util/dependencies.lua index 9ab40765..b3f07257 100644 --- a/util/dependencies.lua +++ b/util/dependencies.lua @@ -101,7 +101,7 @@ local function check_dependencies() local encodings, err = softreq "util.encodings" if not encodings then - if err:match("not found") then + if err:match("module '[^']*' not found") then missingdep("util.encodings", { ["Windows"] = "Make sure you have encodings.dll from the Prosody distribution in util/"; ["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/encodings.so"; }); @@ -118,7 +118,7 @@ local function check_dependencies() local hashes, err = softreq "util.hashes" if not hashes then - if err:match("not found") then + if err:match("module '[^']*' not found") then missingdep("util.hashes", { ["Windows"] = "Make sure you have hashes.dll from the Prosody distribution in util/"; ["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/hashes.so"; }); |