prosody: Show friendly error when no config present for legacy SSL ports

Sun, 31 Jan 2010 17:15:35 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 31 Jan 2010 17:15:35 +0000
changeset 2553
c3afa1e02e8f
parent 2552
8dda55217e83
child 2554
b877533d4ec9

prosody: Show friendly error when no config present for legacy SSL ports

prosody file | annotate | diff | comparison | revisions
--- 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

mercurial