diff prosody @ 2553:c3afa1e02e8f

prosody: Show friendly error when no config present for legacy SSL ports
author Matthew Wild <mwild1@gmail.com>
date Sun, 31 Jan 2010 17:15:35 +0000
parents 445b1de5652e
children a0d22b6a3144
line wrap: on
line diff
--- a/prosody	Sun Jan 31 17:14:52 2010 +0000
+++ b/prosody	Sun Jan 31 17:15:35 2010 +0000
@@ -228,6 +228,9 @@
 							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