summaryrefslogtreecommitdiff
path: root/dircpsa.c
diff options
context:
space:
mode:
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;
}