# HG changeset patch # User Matthew Wild # Date 1264958135 0 # Node ID a34decf98668c44403e5ce6bb37116cd72458411 # Parent f2396d7fb6f436bd49af1d273666387e80125059 prosody: Show friendly error when no config present for legacy SSL ports diff -r f2396d7fb6f4 -r a34decf98668 prosody --- 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