diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-02-13 16:22:05 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-02-13 16:22:05 +0000 |
commit | 27114996e41d03b74913ccf02240ae572e09ad82 (patch) | |
tree | 47496cb66d056e999a4d55f5f1833090e789ffd9 /prosody | |
parent | 4a592b5069548aa13a6aad96a1fcb54222345290 (diff) | |
download | prosody-27114996e41d03b74913ccf02240ae572e09ad82.tar.gz prosody-27114996e41d03b74913ccf02240ae572e09ad82.zip |
prosody: More accurate friendly error message in the event that creating the global SSL context fails
Diffstat (limited to 'prosody')
-rwxr-xr-x | prosody | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -221,8 +221,12 @@ function init_global_state() elseif err:match("permission") then friendly_message = "Prosody does not have sufficient privileges to use this port"; elseif err == "no ssl context" then - friendly_message = "there is no 'ssl' config under Host \"*\" which is " - .."require for legacy SSL ports"; + if not config.get("*", "core", "ssl") then + friendly_message = "there is no 'ssl' config under Host \"*\" which is " + .."require for legacy SSL ports"; + else + friendly_message = "initializing SSL support failed, see previous log entries"; + end end log("error", "Failed to open server port %d, %s", port, friendly_message); end |