diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-11-17 21:33:02 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-11-17 21:33:02 +0800 |
commit | 129e7e62a406ca65cb1f9d4262688330e6cccd8b (patch) | |
tree | f25778501c90d603cded5ec6e526399fa9e3d411 /dircpsa.c | |
parent | ff23796e22916a739d455e7684e59906fbcb09e8 (diff) |
Add session run error logging
Diffstat (limited to 'dircpsa.c')
-rw-r--r-- | dircpsa.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |