util.dependencies: Show the full error when a symbol is not found (i.e., when running...
authorThijs Alkemade <me@thijsalkema.de>
Thu, 10 Mar 2016 09:13:57 +0000 (10:13 +0100)
committerThijs Alkemade <me@thijsalkema.de>
Thu, 10 Mar 2016 09:13:57 +0000 (10:13 +0100)
util/dependencies.lua

index 9ab4076517cb58a477fe6ead86690849b846e9d5..b3f072573e443bf97e1f6a7a20b7892dfd681da9 100644 (file)
@@ -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";
                                        });