Fix error message.
This commit is contained in:
parent
d9c373419a
commit
72913575f4
|
@ -109,7 +109,7 @@ TCPListener listenTCP(ushort port, TCPConnectionDelegate connection_callback, st
|
||||||
auto conn = TCPConnection(s, addr);
|
auto conn = TCPConnection(s, addr);
|
||||||
runTask(connection_callback, conn);
|
runTask(connection_callback, conn);
|
||||||
});
|
});
|
||||||
enforce(sock != StreamListenSocketFD.invalid, "Failed to listen on %s", address);
|
enforce(sock != StreamListenSocketFD.invalid, "Failed to listen on "~addr.toString());
|
||||||
return TCPListener(sock);
|
return TCPListener(sock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue