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 2847
a34decf98668
parent 2846
f2396d7fb6f4
child 2848
b2f367f16eb8

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

prosody file | annotate | diff | comparison | revisions
--- a/prosody	Sun Jan 31 16:40:47 2010 +0000
+++ b/prosody	Sun Jan 31 17:15:35 2010 +0000
@@ -218,6 +218,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