diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-06-04 15:22:04 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-06-04 15:22:04 +0100 |
commit | 8f7a737f08186fffef7c63c7d5dc98c7b9855dcb (patch) | |
tree | 95860daed5d12bdeda48e20242ed98859becf8dd /net/server.lua | |
parent | 5721c294bac645fcf26ce1e69b4f40f2b52e3dca (diff) | |
download | prosody-8f7a737f08186fffef7c63c7d5dc98c7b9855dcb.tar.gz prosody-8f7a737f08186fffef7c63c7d5dc98c7b9855dcb.zip |
net.server: Display server port in error messages
Diffstat (limited to 'net/server.lua')
-rw-r--r-- | net/server.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/server.lua b/net/server.lua index d7872f51..3491b190 100644 --- a/net/server.lua +++ b/net/server.lua @@ -653,13 +653,13 @@ addserver = function( listeners, port, addr, pattern, sslctx, maxconnections, st err = "luasec not found"
end
if err then
- out_error( "server.lua: ", err )
+ out_error( "server.lua, port ", port, ": ", err )
return nil, err
end
addr = addr or "*"
local server, err = socket_bind( addr, port )
if err then
- out_error( "server.lua: ", err )
+ out_error( "server.lua, port ", port, ": ", err )
return nil, err
end
local handler, err = wrapserver( listeners, server, addr, port, pattern, sslctx, maxconnections, startssl ) -- wrap new server socket
|