Software /
code /
prosody
Changeset
2847:a34decf98668
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 | 2846:f2396d7fb6f4 |
children | 2848:b2f367f16eb8 |
files | prosody |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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