summaryrefslogtreecommitdiff
path: root/dircpsa.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-11-17 21:33:02 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-11-17 21:33:02 +0800
commit129e7e62a406ca65cb1f9d4262688330e6cccd8b (patch)
treef25778501c90d603cded5ec6e526399fa9e3d411 /dircpsa.c
parentff23796e22916a739d455e7684e59906fbcb09e8 (diff)
Add session run error logging
Diffstat (limited to 'dircpsa.c')
-rw-r--r--dircpsa.c4
1 files changed, 3 insertions, 1 deletions
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;
}