# HG changeset patch # User Thijs Alkemade # Date 1457601237 -3600 # Node ID 6d97895c2bd767ea85f1c5c065332cd1bb481a1d # Parent 751a4832adb4b2156cd63a3b20e907fe6b4d1db4 util.dependencies: Show the full error when a symbol is not found (i.e., when running Prosody with the wrong version of Lua). diff -r 751a4832adb4 -r 6d97895c2bd7 util/dependencies.lua --- a/util/dependencies.lua Thu Mar 10 17:53:36 2016 +0000 +++ b/util/dependencies.lua Thu Mar 10 10:13:57 2016 +0100 @@ -101,7 +101,7 @@ 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 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"; });