# HG changeset patch # User Matthew Wild # Date 1266078125 0 # Node ID 46068118019404090e3ada9caf9f719ea4e5eb7c # Parent d08771a2f6179342b39d241618f37abf0ec7d408 prosody: More accurate friendly error message in the event that creating the global SSL context fails diff -r d08771a2f617 -r 460681180194 prosody --- a/prosody Fri Feb 12 17:27:53 2010 +0000 +++ b/prosody Sat Feb 13 16:22:05 2010 +0000 @@ -221,8 +221,12 @@ 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