Software /
code /
prosody
Changeset
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 | 2552:8dda55217e83 |
children | 2554:b877533d4ec9 |
files | prosody |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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