Software /
code /
prosody
Comparison
util/dependencies.lua @ 7264:6d97895c2bd7
util.dependencies: Show the full error when a symbol is not found (i.e., when running Prosody with the wrong version of Lua).
author | Thijs Alkemade <me@thijsalkema.de> |
---|---|
date | Thu, 10 Mar 2016 10:13:57 +0100 |
parent | 7007:e28fbe6dd424 |
child | 7359:a5a080c12c96 |
child | 7679:589e27b47d56 |
comparison
equal
deleted
inserted
replaced
7262:751a4832adb4 | 7264:6d97895c2bd7 |
---|---|
99 }, "SSL/TLS support will not be available"); | 99 }, "SSL/TLS support will not be available"); |
100 end | 100 end |
101 | 101 |
102 local encodings, err = softreq "util.encodings" | 102 local encodings, err = softreq "util.encodings" |
103 if not encodings then | 103 if not encodings then |
104 if err:match("not found") then | 104 if err:match("module '[^']*' not found") then |
105 missingdep("util.encodings", { ["Windows"] = "Make sure you have encodings.dll from the Prosody distribution in util/"; | 105 missingdep("util.encodings", { ["Windows"] = "Make sure you have encodings.dll from the Prosody distribution in util/"; |
106 ["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/encodings.so"; | 106 ["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/encodings.so"; |
107 }); | 107 }); |
108 else | 108 else |
109 print "***********************************" | 109 print "***********************************" |
116 fatal = true; | 116 fatal = true; |
117 end | 117 end |
118 | 118 |
119 local hashes, err = softreq "util.hashes" | 119 local hashes, err = softreq "util.hashes" |
120 if not hashes then | 120 if not hashes then |
121 if err:match("not found") then | 121 if err:match("module '[^']*' not found") then |
122 missingdep("util.hashes", { ["Windows"] = "Make sure you have hashes.dll from the Prosody distribution in util/"; | 122 missingdep("util.hashes", { ["Windows"] = "Make sure you have hashes.dll from the Prosody distribution in util/"; |
123 ["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/hashes.so"; | 123 ["GNU/Linux"] = "Run './configure' and 'make' in the Prosody source directory to build util/hashes.so"; |
124 }); | 124 }); |
125 else | 125 else |
126 print "***********************************" | 126 print "***********************************" |