commit c7baa3393f410966076c659f9a1dac77f8854471 parent ba171caec9bbcd0b3fbb001848f1e9d74a296dea Author: sin <sin@2f30.org> Date: Thu, 17 Dec 2015 17:07:17 +0000 Include port in error message Diffstat:
M | sock.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sock.c b/sock.c @@ -44,6 +44,7 @@ dial(char *host, char *port) } freeaddrinfo(res); if (!r) - errx(1, "cannot connect to %s", host); + errx(1, "cannot connect to %s on port %s", + host, port); return s; }