prosody: Add a catch-all friendly message for when any port is in use we want to use
authorMatthew Wild <mwild1@gmail.com>
Fri, 5 Feb 2010 15:05:39 +0000 (15:05 +0000)
committerMatthew Wild <mwild1@gmail.com>
Fri, 5 Feb 2010 15:05:39 +0000 (15:05 +0000)
prosody

diff --git a/prosody b/prosody
index 19bdfeb191837db8bc19c0f259074d73e632da88..9e41c27711186f78dab18504216101728088b891 100755 (executable)
--- a/prosody
+++ b/prosody
@@ -225,6 +225,8 @@ function init_global_state()
                                                        elseif port == 5280 then
                                                                friendly_message = "check that Prosody or a BOSH connection manager "
                                                                        .."is not already running";
+                                                       else
+                                                               friendly_message = "this port is in use by another application";
                                                        end
                                                elseif err:match("permission") then
                                                        friendly_message = "Prosody does not have sufficient privileges to use this port";