From 129e7e62a406ca65cb1f9d4262688330e6cccd8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Wed, 17 Nov 2021 21:33:02 +0800 Subject: Add session run error logging --- dircpsa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dircpsa.c') diff --git a/dircpsa.c b/dircpsa.c index 175f1ac..0b58464 100644 --- a/dircpsa.c +++ b/dircpsa.c @@ -67,8 +67,10 @@ int main (int argc, char *argv[]) return 1; } - if (irc_run(session)) + if (irc_run(session)) { + printf("Could not connect or I/O error: %s\n", irc_strerror(irc_errno(s))); return 1; + } return 0; } -- cgit v1.2.3