prosody: Show friendly error when no config present for legacy SSL ports
authorMatthew Wild <mwild1@gmail.com>
Sun, 31 Jan 2010 17:15:35 +0000 (17:15 +0000)
committerMatthew Wild <mwild1@gmail.com>
Sun, 31 Jan 2010 17:15:35 +0000 (17:15 +0000)
prosody

diff --git a/prosody b/prosody
index 96223c72f2b7506e88745e1757911a822c66b092..9d0054c528e5a9702fb18f9b8bd3cb1a33b71e2a 100755 (executable)
--- a/prosody
+++ b/prosody
@@ -228,6 +228,9 @@ function init_global_state()
                                                        end
                                                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";
                                                end
                                                log("error", "Failed to open server port %d, %s", port, friendly_message);
                                        end