irk: explain why we think irkerd isn't running
authorBeat Bolli <bbolli@ewanet.ch>
Wed, 25 Dec 2013 14:29:33 +0000 (15:29 +0100)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 30 May 2014 14:15:23 +0000 (10:15 -0400)
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
irk

diff --git a/irk b/irk
index 0e88a1a04b0243a5789670c299277655357ff372..3ef9b4ef923b2c1f4cf5d05b8f8e334aa65b7794 100755 (executable)
--- a/irk
+++ b/irk
@@ -22,8 +22,8 @@ def send(s, target, message):
 
 try:
     s = socket.create_connection(("localhost", 6659))
-except:
-    print "No irker is running."
+except socket.error, e:
+    sys.stderr.write("irk: no irkerd running: %r\n" % e)
 
 target = sys.argv[1]
 if not "irc:" in target: