Software /
code /
prosody
Changeset
1297:9c8f86a3878d
net.server: Display server port in error messages
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 04 Jun 2009 15:22:04 +0100 |
parents | 1296:5cf4c444d3f9 |
children | 1298:4e0db19e5f1c |
files | net/server.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server.lua Thu Jun 04 15:17:39 2009 +0100 +++ b/net/server.lua Thu Jun 04 15:22:04 2009 +0100 @@ -653,13 +653,13 @@ 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