--- a/src/nexus.c Sun Feb 22 07:08:57 2009 +0200
+++ b/src/nexus.c Sun Feb 22 07:21:28 2009 +0200
@@ -11,7 +11,7 @@
#include "sock.h"
#define CONNECT_HOST "irc.fixme.fi"
-#define CONNECT_SERV "6667"
+#define CONNECT_SERV "6697"
#define LINE_LENGTH 512
struct recvline_state {
@@ -112,15 +112,13 @@
// initialize
if (sock_init(&err))
- // XXX: ...
- errx(1, "sock_init");
+ errx(1, "sock_init: %s", error_name(ERROR_CODE(&err)));
memset(&recvline_ctx, 0, sizeof(recvline_ctx));
// over-simplified connect
if (sock_gnutls_connect(&sock, CONNECT_HOST, CONNECT_SERV, &err))
- // XXX:
- errx(1, "sock_gnutls_connect");
+ errx(1, "sock_gnutls_connect: %s", error_name(ERROR_CODE(&err)));
// read lines and dump them out
do {