diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-01-23 00:07:15 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-01-23 00:07:15 +0000 |
commit | 335e19315e20464e6290c0d92f8d8b87bb485361 (patch) | |
tree | 81e28fa15ab0ab5aa5456d1ad94c5a9c85f24758 /core/portmanager.lua | |
parent | a37f067c905d472aba0d70130718660f1470163e (diff) | |
download | prosody-335e19315e20464e6290c0d92f8d8b87bb485361.tar.gz prosody-335e19315e20464e6290c0d92f8d8b87bb485361.zip |
portmanager: Pass port to friendly_error_message()
Diffstat (limited to 'core/portmanager.lua')
-rw-r--r-- | core/portmanager.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/portmanager.lua b/core/portmanager.lua index a460cd6a..353c4a89 100644 --- a/core/portmanager.lua +++ b/core/portmanager.lua @@ -21,7 +21,7 @@ local active_services = multitable.new(); --- Private helpers -local function error_to_friendly_message(service_name, err) +local function error_to_friendly_message(service_name, port, err) local friendly_message = err; if err:match(" in use") then -- FIXME: Use service_name here @@ -90,7 +90,7 @@ function activate_service(service_name) else local handler, err = server.addserver(interface, port, listener, mode, ssl); if not handler then - log("error", "Failed to open server port %d on %s, %s", port, interface, error_to_friendly_message(service_name, err)); + log("error", "Failed to open server port %d on %s, %s", port, interface, error_to_friendly_message(service_name, port, err)); else log("debug", "Added listening service %s to [%s]:%d", service_name, interface, port); active_services:add(service_name, interface, port, { |